🎲 Push The Button A base template for multiplayer turn-based game on Ethereum...
The goal is to generate the largest number by sheer luck The account whose turn it is to play is allowed to click the "Spin the Roulette wheel" button Once he clicks the button, a random number is generated via the commit-reveal scheme The winning number is updated if this number is the largest yet. There is 30 second deadline before he loses his turn If he loses his turn, anybody but him can "Skip Turn" for him When everyone is done playing, the winner is declared and everyone can withdraw their winnings
How it's made
🔏 Edit your smart contract YourContract.sol in packages/hardhat/contracts 📝 Edit your frontend App.jsx in packages/react-app/src 💼 Edit your deployment script deploy.js in packages/hardhat/scripts 📱 Open http://localhost:3000 to see the app 🏗 scaffold-eth is a hackthon stack for quick product prototyping on Ethereum. 👩🔬 This scaffolding leverages state of the art tooling from the ecosystem. 🧪 It is a free standing dapp so you can learn by making small changes