kedoska / engine-blackjack

Javascript library to make blackjack engines
GNU General Public License v2.0
33 stars 29 forks source link

2 aces bug #47

Closed kedoska closed 7 years ago

kedoska commented 7 years ago

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
}