The hit
function is for add new card to Player's hand.
There is the check for Player's bust. But there are not for push or win.
The hit
function lacks the necessary if
statements to handle scenarios where the player either wins or the game results in a push. This omission can lead to improper game outcomes, as the conditions for a player's victory or a tie are not adequately addressed.
Having 21 points does not automatically conclude the game or guarantee a win for the player. To officially end the game, the call
function must be invoked. Only after this function is executed can the game be concluded and the outcome determined.
The absence of if
statements to handle winning and push scenarios impacts gas consumption. As a result, the player must invoke the call
function to conclude the game properly. Only after this function is executed can the game officially end.
manual review
Please rethinking the protocol.
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.