Update blackjack.py

This commit is contained in:
SpudGunMan
2024-09-23 22:54:46 -07:00
parent a9cd443bdd
commit b41adb12f7
+1 -4
View File
@@ -267,9 +267,6 @@ def playBlackJack(nodeID, message):
bet_money = 5
else:
bet_money = bet_money
# handle # message
if bet_money != 0:
bet_money = int(bet_money)
else:
bet_money = int(message)
@@ -278,7 +275,7 @@ def playBlackJack(nodeID, message):
else:
return f"Invalid Bet, the maximum bet you can place is {p_chips.total}"
except ValueError:
return f"Invalid Bet, the maximum bet you can place is {p_chips.total}"
return f"Invalid Bet, the maximum bet, {p_chips.total}"
# Show the cards
msg += show_some(p_cards, d_cards, p_hand)