Games with a large number of turns could potentially hit the block gas limit during the commit-reveal phases, thereby making the game unplayable.
An attacker can create games with an extreme high number of turns, thereby rendering the contract unusable or funds to be locked.
Foundry
VS Code
Implement a reasonable upper limit on the number of turns.
Add a gas limit check in the createGameWithEth function.
Lastly, you should consider gas usage when creating a multi-turn game.
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.