-
Notifications
You must be signed in to change notification settings - Fork 29
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
Case for 'even money' #60
Comments
@jmolero this could be done introducing a new |
Could be added as a rule but I think it should be part of the insurance. Even money is the mathematical result of the player taking insurance and having a blackjack: https://en.wikipedia.org/wiki/Even_money I implemented this without the rule flag on #61 I tried all the cases of insurance and even money to check I didn't introduce any bugs: |
Thanks @kedoska for looking into this. I think you are right, I didn't take into account it could be a breaking change. |
I think the engine is missing the insurance special case where the dealer asks for 'even money'. This kind of insurance should be available when the dealer has an ace card and the player has a blackjack.
After the 'DEAL' action, and if the player has a blackjack and the dealer face-up card is an ace, the game goes to the 'SHOWDOWN' stage instead of asking for even money/insurance.
The following link has an explanation with an example: http://www.hitorsplit.com/articles/What_is_Insurance_and_Even_Money.html
I might try to add this to the engine but maybe you can give me some hints.
The text was updated successfully, but these errors were encountered: