In blackjack, Ace is either 1 or 11. In playerhands(),
the 1 case is wrongfully accounted
Here we can see that cardValue
is calculated %13 which represent a color and, is either it's value, or >=10 which represent 10, Jack, Queen, King.
cardValue == 0
represents the Ace case. In the code it's represented as 10, where it should be 1 or 11 if we follow the blackjack rules.
Ace's case in the player count is poorly managed, diverging from blackjack's original rules. It changes % of luck to wins. Also, players expect to play with blackjack rules and will make choices depending on that.
Manual
Change how aces are counted. As it's either 1 or 11, it should be reflected in the code.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.