Inspiration

We need more on-chain games!

What it does

2 player Russian Roulette Game. Player 1 creates a game and sets the wager to bet. Player 2 joins the game and must match the wager. Game then starts and each player must spin the revolver cylinder (get random number from VRF) and fire the revolver (determines if player loses based on RNG) on their turn. Game continues back and forth until there is a winner.

How we built it

Chainlink VRF, ethersjs, react

Challenges we ran into

Events always give me problems. For some reason, about 10% of events are missed using ethersjs, no matter what I do.

Accomplishments that we're proud of

Actually getting this thing working with very limited time

What we learned

  1. Getting comfortable with Chainlink VRF. Will have to try something new next hackathon.
  2. Some React practice.

What's next for Revolver

  1. A proper UI with animations
  2. More than 2 players
  3. Deployment on mainnet!
Share this project:

Updates