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

Wrong Point Calculation when Multiple Aces are Present #2

Open
StephDC opened this issue Dec 24, 2018 · 0 comments
Open

Wrong Point Calculation when Multiple Aces are Present #2

StephDC opened this issue Dec 24, 2018 · 0 comments

Comments

@StephDC
Copy link

StephDC commented Dec 24, 2018

When one has more than one Aces, it seemed all Aces were counted as 1. This make the hand 4 A A 5 only worth 11 instead of 21 pts.

The culprit is probably that when hand value >21 your script loop through every card with value == 11 and reduce to 1. Stop the loop when the first is found and reduced, and recalculate from start may fix the problem at a cost of efficiency.

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

1 participant