The current implementation of the call function in the game logic introduces an unfair advantage for the dealer, violating standard blackjack rules.
In the description of this game is written "The game involves a player competing against a dealer, with standard blackjack rules applied." The rule is when the dealer's hand value equals the player's hand value, it leads to a tie (push) rather than allowing the dealer to win. In the case of a tie (“push” or “standoff”), bets are returned without adjustment.
There is no check to determine if the dealer's hand value equals the player's hand value.
This check omission is significant because it violates standard blackjack rules and potentially creates an unfair advantage for the dealer.
Manual code review.
Apply this 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.