๐ฒ 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
๐ 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