kedoska/engine-blackjack

2 aces bug

Closed this issue · 0 comments

What the prole is:
when the player gets 5, A, A, 5, the values are 22 / 12, and the game busted, when it should not have.

to reproduce:

'♥5 ♣1 ♥4 ♣9 ♠1 ♦5'
close: true
playerHasBlackjack: false
playerHasBusted: true
playerHasSurrendered: false
playerValue: {
   hi: 22
   lo: 12
}