A rock paper scissors game built on the Aleo blockchain using the Provable SDK.
To play you must have a Puzzle Wallet or Leo Wallet with Aleo credits. To connect your wallet use the Select Wallet
button in the sidebar. A modal will ask you to confirm. Once confirmed you may play rock paper scissors against the system. Just click one of the buttons to select your move. Once a move has been selected the app will construct a transaction including your move and broadcast it to the Aleo network. The program will choose a random move and once the transaction is finalized the outcome will be returned and stored on-chain. You may look at the outcomes of previous games in the Game History
tab and you can see your wins, losses, and draws in the Player Stats
tab. Both of these tabs query chain state to give you this information.
If interested you may view the Leo program source code here
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend using TypeScript and enable type-aware lint rules. Check out the TS template to integrate TypeScript and typescript-eslint
in your project.