Blackjack basic strategy early surrender

broken image
broken image

handCount - the total number of hands the player has in play, usually 1 unless the player has split.dealerCard - an integer representing the value of the dealer's up card.playerCards - an array of integer values of the card, from 1-10 (1=Ace, all face cards should be 10).The arguments to GetRecommendedPlayerAction are: GetRecommendedPlayerAction(playerCards, dealerCard, handCount, The exposed function from this library is GetRecommendedPlayerAction which will return a string suggesting an action for the player to take on their hand. offerInsurance - whether insurance is offered or not.surrender - none, early, or late (early surrender means surrender is offered before the dealer checks for a blackjack).hitSoft17 - whether the dealer hits soft 17 or not.

broken image

It is intended to augment blackjack applicationsīy teaching the player Basic Strategy, based on. Nodejs module that provides suggested action for a blackjack hand.

broken image