Saul, when running your code I encountered an issue with Aces : if someone draws one they become unable to bust. Any time they go above 21 the has_ace check will subtract 10 from their point total, but there's nothing in place to make it only run once per ace drawn.
Assuming I didn't miss something, I'd recommend the following:
–Initialize an ace_not_subtracted = True value under has_ace = True
–Add ace_not_subtracted to the if has_ace check, and set ace_not_subtracted to False in the body
–Add ace_not_subtracted = True to the if card.rank == "Ace" check's body
If I did miss something, could you point me to where?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Saul, when running your code I encountered an issue with Aces : if someone draws one they become unable to bust. Any time they go above 21 the has_ace check will subtract 10 from their point total, but there's nothing in place to make it only run once per ace drawn.
Assuming I didn't miss something, I'd recommend the following:
If I did miss something, could you point me to where?