This repository contains the implementation of the classic game Rock Paper Scissors, built using the Calimero Application SDK and a user interface (UI) implemented in Vue.js.
The project is structured into two main parts:
-
Logic Folder: This folder contains the contract for the game, implemented using the Calimero SDK. It also includes a build script to compile the contract into a WebAssembly (WASM) file.
-
Vue.js UI: The user interface for the game is implemented using Vue.js. It interacts with the deployed contract to facilitate the gameplay.
Follow these steps to get the project up and running:
You need to run Calimero nodes on your machine to get started. Follow the Getting started documentation.
- Navigate to the
logic/rock-paper-scissors
folder. - Run the build script to compile the contract into a WASM file.
Follow the deployment instructions provided in the Calimero documentation. You need to deploy the game on at least two nodes to play the game.
- Ensure you have
yarn
installed. If not, you can install it usingnpm install -g yarn
. - Run
yarn dev
in theapp
folder, to start the development server for the Vue.js application. - Enter the calimero node URL you got from the first step and click
Connect
- Run another instance of the UI and connect to another node.
- Now you have two players that can start playing the game!