Skip to content

randyahx/solidity-casino-rockpaperscissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Casino RockPaperScissors

This is a RockPaperScissors game that supports multiple rooms, betting and game fees.

Steps

  1. Player 1 creates a room.
  2. Player 2 joins a room.
  3. Either player can reveal their choice first but both have to reveal to move on.
  4. Winner takes all. No game fees if the game ends in a draw and both players will be refunded.
  5. 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.

Run tests

$ forge test -vvvv

This project is still in development and for educational purposes only (Commit-Reveal scheme)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published