You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding up a hand's total, cards with numbers count for that many points. Face cards ('J', 'Q', and 'K') are worth 10 points. 'A' can count for 1 or 11.
learntools/learntools/python/blackjack.py
Line 58 in 3d21e2e
Should be :
if (tot + 9) <= 21:
because 1pt has already been added in tot for aces.
Example:
I have already 11pts without ace and I hit an Ace.
tot must get 10 pts (1 + 9) and not 11 (1+10)
Here is the example I got during a simulation
The text was updated successfully, but these errors were encountered: