Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count of Aces is wrong when total=21 #379

Open
cchaize opened this issue May 13, 2021 · 1 comment
Open

Count of Aces is wrong when total=21 #379

cchaize opened this issue May 13, 2021 · 1 comment

Comments

@cchaize
Copy link

cchaize commented May 13, 2021

if (tot + 10) <= 21:

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
image

@imba-tjd
Copy link
Contributor

It's correct.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants