Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +136,5 @@ while True:
|
|
136 |
pro_tip.write(display_pro_tip(player, dealer))
|
137 |
betting_strategy.write(display_betting_strategy(player, dealer))
|
138 |
|
139 |
-
if
|
140 |
-
break
|
141 |
-
|
142 |
-
if not player.possible_actions:
|
143 |
break
|
|
|
136 |
pro_tip.write(display_pro_tip(player, dealer))
|
137 |
betting_strategy.write(display_betting_strategy(player, dealer))
|
138 |
|
139 |
+
if player.total == 21 or dealer.total == 21 or not player.possible_actions:
|
|
|
|
|
|
|
140 |
break
|