Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,6 +104,7 @@ result = st.empty()
|
|
| 104 |
pro_tip = st.empty()
|
| 105 |
betting_strategy = st.empty()
|
| 106 |
|
|
|
|
| 107 |
while True:
|
| 108 |
if 'Hit' in player.possible_actions:
|
| 109 |
if player_hit_option.button('Hit'):
|
|
@@ -135,7 +136,7 @@ while True:
|
|
| 135 |
pro_tip.write(display_pro_tip(player, dealer))
|
| 136 |
betting_strategy.write(display_betting_strategy(player, dealer))
|
| 137 |
|
| 138 |
-
if game_play.
|
| 139 |
break
|
| 140 |
|
| 141 |
if not player.possible_actions:
|
|
|
|
| 104 |
pro_tip = st.empty()
|
| 105 |
betting_strategy = st.empty()
|
| 106 |
|
| 107 |
+
|
| 108 |
while True:
|
| 109 |
if 'Hit' in player.possible_actions:
|
| 110 |
if player_hit_option.button('Hit'):
|
|
|
|
| 136 |
pro_tip.write(display_pro_tip(player, dealer))
|
| 137 |
betting_strategy.write(display_betting_strategy(player, dealer))
|
| 138 |
|
| 139 |
+
if game_play.is_game_over():
|
| 140 |
break
|
| 141 |
|
| 142 |
if not player.possible_actions:
|