This is the code for the front-end dApp development article (https://coinsbench.com/rock-paper-scissors-lizard-spock-game-with-solidity-react-typescript-wagmi-viem-commit-reveal-8d5a1f8c3230).
✔ Best practices for front-end dApp development: On-Chain dApp Game with Solidity, React, Typescript & Wagmi/Viem (“Commit/reveal” w/ keccak256, “Clone factory” patterns)
The dApp I explain in my tutorial is an on-chain rock paper scissors lizard spock game built with React, Typescript, Wagmi/Viem, Sepolia & integrated with Solidity smart contracts (“Clone factory”, “commit/reveal” patterns). The game supports multiple (an unlimited № of…) playing rounds, each supporting input from roughly 2 players.
yarn start
yarn prettify