Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ def start_game():
|
|
| 56 |
game_deck, dealer, player, game_play = start_game()
|
| 57 |
|
| 58 |
def display_pro_tip(player, dealer):
|
| 59 |
-
player_total = sum(card.
|
| 60 |
-
dealer_upcard = dealer.cards[0].
|
| 61 |
|
| 62 |
if player_total <= 11:
|
| 63 |
return "Pro Tip: With a total of 11 or less, it's generally advisable to hit."
|
|
@@ -69,8 +69,8 @@ def display_pro_tip(player, dealer):
|
|
| 69 |
return ""
|
| 70 |
|
| 71 |
def display_betting_strategy(player, dealer):
|
| 72 |
-
player_total = sum(card.
|
| 73 |
-
dealer_upcard = dealer.cards[0].
|
| 74 |
|
| 75 |
if player_total <= 11:
|
| 76 |
return "Betting Strategy: Consider increasing your bet when your total is 11 or less."
|
|
|
|
| 56 |
game_deck, dealer, player, game_play = start_game()
|
| 57 |
|
| 58 |
def display_pro_tip(player, dealer):
|
| 59 |
+
player_total = sum(card.rank for card in player.cards)
|
| 60 |
+
dealer_upcard = dealer.cards[0].rank
|
| 61 |
|
| 62 |
if player_total <= 11:
|
| 63 |
return "Pro Tip: With a total of 11 or less, it's generally advisable to hit."
|
|
|
|
| 69 |
return ""
|
| 70 |
|
| 71 |
def display_betting_strategy(player, dealer):
|
| 72 |
+
player_total = sum(card.rank for card in player.cards)
|
| 73 |
+
dealer_upcard = dealer.cards[0].rank
|
| 74 |
|
| 75 |
if player_total <= 11:
|
| 76 |
return "Betting Strategy: Consider increasing your bet when your total is 11 or less."
|