awacke1 commited on
Commit
f7450ef
·
verified ·
1 Parent(s): c0795f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.value for card in player.cards)
60
- dealer_upcard = dealer.cards[0].value
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.value for card in player.cards)
73
- dealer_upcard = dealer.cards[0].value
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."