This is a RockPaperScissors game that supports multiple rooms, betting and game fees.
Steps
- Player 1 creates a room.
- Player 2 joins a room.
- Either player can reveal their choice first but both have to reveal to move on.
- Winner takes all. No game fees if the game ends in a draw and both players will be refunded.
- If the deadline for the reveal stage passes and only 1 player has revealed, either player can select forfeit to end the game. The winner will be the player who has revealed their choice.
$ forge test -vvvv
This project is still in development and for educational purposes only (Commit-Reveal scheme)