Check if a Hand is a Soft 17
is_soft_17.Rd
Determines whether a Blackjack hand qualifies as a "soft 17". A soft 17 is a total of 17 where an Ace is being counted as 11. This distinction affects the dealer's behavior — dealers typically hit on soft 17.
Details
The function uses the blackjack_score()
to calculate the hand’s value assuming optimal Ace handling,
and then checks if lowering the Ace(s) to 1 would reduce the total below 17. If so, the hand is a soft 17.