Rock Paper Scissors

First Flight #38
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Game doesn't support premature end if current score can mathematically determine the winner

Summary

In some game scenarios, if the score imbalance is too wide that remaining turns couldn't turn the tide, game should be concluded early with an obvious winner; yet the contract doesn't handle it.

Recommendations

Add the proper check (i.e., game.scoreA > game.totalTurns - game.scoreA || game.scoreB > game.totalTurns - game.totalTurns).

Updates

Appeal created

m3dython Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.