A simple client app to play extended version of Rock Paper Scissor game on chain staking some value !
The first player creates the game, stake a commitment of his move, set the other player and stakes some ETH. The second player pays the same amount of ETH and chooses his move. The first player reveals his move and the contract distributes the ETH to the winner or splits them in case of a tie.
The contracts can be found here.
Based on vue3 starter template https://github.com/vincentdoerig/vue3-typescript-tailwind-starter.
Play Online ( Use RinkeBy Network )
-
Secured : the moves of the players are hashed and the second player can not cheat on looking the first player commitment and move.
-
Resume-able : if you refresh your screen or lost state to a game instance you deploy you can resume and continue to play.
-
Auto Revert Funds : if the other opponent didn't play with the given time limit it will be handled as time out and funds will be reverted.
Contributions, feedback and issues are welcome. Feel free to fork, comment, critique, or submit a pull request.
This project is open source and available under the MIT License.