Skip to content

ProvableHQ/rock-paper-scissors-example

Repository files navigation

rock-paper-scissors-example

A rock paper scissors game built on the Aleo blockchain using the Provable SDK.

How The Game Works

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

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •