Closed Edsardio closed 7 years ago
@Edsardio the issue here is that dealer stands on 17. So 16 is not enough and he must take another card. You are expecting a push situation but it is not .... Player won.
Is there no way to make the dealer play for the draw, would love the functionality myself :) Draw > lose
it really depends on what you want to do:
If the answer is... 2 alter the game, you can hack on this
let stage = null
if (dealerValue.hi < 17) {
stage = TYPES.STAGE_DEALER_TURN
} else {
if (!rules.standOnSoft17 && engine.isSoftHand(dealerCards)) {
stage = TYPES.STAGE_DEALER_TURN
} else {
stage = TYPES.STAGE_DONE
}
}
Instead of stay on STAGE_DEALER_TURN
because the dealerValue.hi < 17
you can probably compare if dealerValue.hi
is >
playerValue.
You also have to consider the split... so the logic will probably grows but everything is around STAGE_DEALER_TURN
Thanks for your fast and detailed replies :)
So I've actually managed to implement this into a discord bot (wasn't really that hard tbh)
When testing around I stumbled upon this.
The player did stand immediately, on the first draw for dealer both dealer and player had 16, dealer got another card and overdraw making the player win. This causes the player to double it's points instead of win his original amount. Is there a way to add this as an option when initializing the game?