Revolution Roulette

On chain russian roulette with unique items as powerups. Settle minor bets with some fun on optimism ๐Ÿ˜Ž.

๐ŸŽฒ Revolution Roulette

Challenge others (possibly with some optimism on the line ๐Ÿค‘) and try your luck. The game gives you some items and a gun with some live and blank rounds. Use them effectively to remain alive and win the game ๐Ÿ˜Ž.

โ›น๏ธโ€โ™‚๏ธ How to Play?

  • Enter the address of your opponent along with some bet.
  • The opponent then needs to "accept" the challenge paying the same amount.
  • Some random player is chosen to take the first shot. Don't worry the other player gets +1 โค๏ธ to compensate for the disadvantage.
  • Items are given from time to time (there's a 25% chance each turn), aim is to get the opponent's hp to 0.

๐Ÿ‘ทโ€โ™‚๏ธ Building locally

  • Install dependencies with yarn install
  • yarn chain to start the local hardhat chain
  • On a second terminal, yarn deploy to deploy your contract to the local chain
  • On a third one, yarn start to start the nextjs app

โ˜๏ธ Deploying

  • Set up the required env variables in .env file. See .env.example for reference.
  • Change the defaultNetwork in packages/hardhat/hardhat.config.js to your target network.
  • Also make similar change in packages/nextjs/scaffold.config.ts to change targetNetworks for the frontend.
  • yarn deploy to deploy the contract to the network.
  • (Optional) yarn verify to verify the contract on etherscan.
  • yarn vercel --prod to deploy using vercel.
๐ŸฐBuidlGuidl is a registered ๐Ÿค  Wyoming DAO LLC
Fork meยท

Built with โค๏ธ at

BuidlGuidl
WalletConnect
WalletConnect
Scan with WalletConnect to connect