A Rock, Paper, Scissors game to onboard newbies to web3
Rock, Paper, Scissors game
1.After successful wallet connect, Users can choose a game type and set bet amount to stake and thereby create a game
2.A game ID will be generated, Users can also check the history tab to see list of active game IDs and status of each game
3.Users can share the game ID with other users so that they can play in the Dapp
4.Each participant in a game have the option to select between rock, paper or scissors
5.After which the Smart contract will handle the selection of winner
6.The winner will be credited the stake amount
The application is structured as follows:
•Frontend: Built with Next.js, utilizing React for the UI and Wagmi for Ethereum interactions.
•Smart Contracts: The game logic is implemented in Solidity, ensuring secure and transparent gameplay.
•Blockchain: All game states and transactions are recorded on the Ethereum Arbitrum testnet network.
Key Components
•Smart Contract: rps.sol - Contains the game logic, including game creation, joining, and move handling by utilizing openzepplin contracts.
•Frontend Pages: Homepage, Game creation and joining interface, Game history
•Components: Create Game, Join Game, Game Interface
Rock, Paper, Scissors game 1.After successful wallet connect, Users can choose a game type and set bet amount to stake and thereby create a game 2.A game ID will be generated, Users can also check the history tab to see list of active game IDs and status of each game 3.Users can share the game ID with other users so that they can play in the Dapp 4.Each participant in a game have the option to select between rock, paper or scissors 5.After which the Smart contract will handle the selection of winner 6.The winner will be credited the stake amount The application is structured as follows: •Frontend: Built with Next.js, utilizing React for the UI and Wagmi for Ethereum interactions. •Smart Contracts: The game logic is implemented in Solidity, ensuring secure and transparent gameplay. •Blockchain: All game states and transactions are recorded on the Ethereum Arbitrum testnet network. Key Components •Smart Contract: rps.sol - Contains the game logic, including game creation, joining, and move handling by utilizing openzepplin contracts. •Frontend Pages: Homepage, Game creation and joining interface, Game history •Components: Create Game, Join Game, Game Interface
none