Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 934 Bytes

File metadata and controls

22 lines (18 loc) · 934 Bytes

A rock paper scissors lizard spock implementation relying on the blockchain with a UI and Metamask integration. The smart contract is currently deployed using the Rinkeby Ethereum TestNet. Have a look at the demonstration:

Instructions

Requirements

No requirements needed, but a way to run a local server from the project directory such as:

$ php -S localhost:8080

Deploying the smart contract

The smart contract needs to be deployed, either using Truffle or Remix. You then need to change the smart contract address in src/js/truffle by setting contractAddress to that of the deployed contract.

About the smart contract

The smart contract only allows two players to play at a time and secures the players' moves through a commit and reveal scheme. Here is the detailed logic of the application: