There is no deadline enforcement for commitMove can render a game unplayable when either playerA or playerB fails to commit their moves.
A reveal deadline is only set when both players have committed their moves.
This means that playerA will never be able to reveal their moves based on game mechanics - game.revealDeadline has not been set.
The only option is to call timeoutReveal, which in turn calls _cancelGame, resulting in a refund for both players.
1. Unfair game theory
A players could chicken out of the game, leading to failure to commit moves, whereas the second player has committed their moves.
Manual Code Review
Add a commit moves deadline. This could be made to be the same amout or fime as timeouInterval
Protocol does not provide a way for Player B to exit a game and reclaim their stake if Player A stops participating
Protocol does not provide a way for Player B to exit a game and reclaim their stake if Player A stops participating
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.