After the fix for #47 we now need to consider that handValue.hi is not the only available value to be considered in getPrize
The following code is not enough at this point:
if (playerValue.hi > dealerValue) {
return (bet + bet)
} else if (playerValue.hi === dealerValue) {
return bet
}
After the fix for #47 we now need to consider that
handValue.hi
is not the only available value to be considered ingetPrize
The following code is not enough at this point: