summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/examples/blackjack/global.fate9
1 files changed, 4 insertions, 5 deletions
diff --git a/data/examples/blackjack/global.fate b/data/examples/blackjack/global.fate
index d08706b..760e48a 100644
--- a/data/examples/blackjack/global.fate
+++ b/data/examples/blackjack/global.fate
@@ -4,12 +4,11 @@
(global player player)
-(global (lambda text (int)) coins_word)
-
-(set! coins_word
+(global (lambda text (int)) coins_word
(lambda ((int i))
- (if_else (= (var i) 1)
- (text a single coin)
+ (switch (var i)
+ (0 (text no coins))
+ (1 (text a single coin))
(text (var i) coins)
)
)