summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2021-09-10 21:54:31 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2021-09-10 21:54:31 +0200
commit5320374c4e1340cc0cbfa6b2ec12523f38ace254 (patch)
tree7045aee9226e8c0b40cd992e3ea744f8a32e6025 /data/examples/blackjack/play.fate
parent5474a765749d523b053a9dc6d7c15589a3fad8fc (diff)
Warning on dangerously named user content. (Blackjack example updated)
Diffstat (limited to 'data/examples/blackjack/play.fate')
-rw-r--r--data/examples/blackjack/play.fate10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/examples/blackjack/play.fate b/data/examples/blackjack/play.fate
index 76b9e2b..749ca54 100644
--- a/data/examples/blackjack/play.fate
+++ b/data/examples/blackjack/play.fate
@@ -5,13 +5,13 @@
(require cards.fate)
(global bool has_played (false))
-(global (list card) current_deck)
-(global (list card) dealer_hand)
+(global (list #card) current_deck)
+(global (list #card) dealer_hand)
(global int bet)
(global bool has_doubled)
(define_sequence play_a_game ()
- (local card new_card)
+ (local #card new_card)
(if (not has_played)
(text_effect action_description
@@ -171,7 +171,7 @@
)
(define_sequence acquire_card ()
- (local card new_card)
+ (local #card new_card)
(local int player_score)
(list:pop_left! current_deck new_card)
@@ -248,7 +248,7 @@
(newline)
(while (< dealer_score 17)
- (local card new_card)
+ (local #card new_card)
(list:pop_left! current_deck new_card)
(list:add! (var new_card) dealer_hand)