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 😎.
- Try it out.
- Contract deployed on optimism here
- 🚀 Built with Scaffold-Eth
- 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.
- Install dependencies with
yarn install yarn chainto start the local hardhat chain- On a second terminal,
yarn deployto deploy your contract to the local chain - On a third one,
yarn startto start the nextjs app
- Set up the required env variables in
.envfile. See.env.examplefor reference. - Change the
defaultNetworkinpackages/hardhat/hardhat.config.jsto your target network. - Also make similar change in
packages/nextjs/scaffold.config.tsto changetargetNetworksfor the frontend. yarn deployto deploy the contract to the network.- (Optional)
yarn verifyto verify the contract on etherscan. yarn vercel --prodto deploy using vercel.