The call() function has several logical flaws in determining the winner of the game. It doesn't properly check for player busts and has incorrect win/loss conditions.
Players can win even when bust (over 21)
Incorrect payouts possible
Potential for unfair wins/losses
In this case if Dealer has more than 21 he lost, but we also should check how much Player has
if Player has more than Dealer, Player wins, we're not even comparing numbers to 21 (if Player bust)
Add check if Player is bust before other checks
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.