Fixed Blackjack

This commit is contained in:
2023-01-02 16:44:22 +10:00
parent 61579a75a4
commit 01d9659be1
2 changed files with 1 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ def handNumbersToCards(hand):
cards = "" cards = ""
for card in hand: for card in hand:
cards += convertNumberToCard(card) cards += convertNumberToCard(card)
return cards
def getHandTotal(hand): def getHandTotal(hand):
cardValue = lambda c: min(c % 13 + 1, 10) cardValue = lambda c: min(c % 13 + 1, 10)