summaryrefslogtreecommitdiffstats
path: root/net/ricketyspace
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-18 17:11:34 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-18 17:11:34 -0500
commita3cc473443bae2420b7fa6460687eecd7b33a767 (patch)
tree86c958c1319bb036621f25f002a563f7a1e41f42 /net/ricketyspace
parent452b5c21ee826454577daaf0ad213bfe3b954f55 (diff)
net/ricketyspace/ror/ten/source.rkt: Updat eadd-winning-probability.
Diffstat (limited to 'net/ricketyspace')
-rw-r--r--net/ricketyspace/ror/ten/source.rkt5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ricketyspace/ror/ten/source.rkt b/net/ricketyspace/ror/ten/source.rkt
index 6fa5228..a2b6a96 100644
--- a/net/ricketyspace/ror/ten/source.rkt
+++ b/net/ricketyspace/ror/ten/source.rkt
@@ -683,9 +683,10 @@
(place-image
(text (string-append
"Winning Probability "
- (number->string
+ (~r
(probability-of-winning (find-territory source)
- (find-territory target))))
+ (find-territory target))
+ #:precision 2))
TEXT-SIZE TEXT-COLOR)
(- WIDTH 150) 100 s)
s))