BlockPaperScissors
Decentralized App + smart contracts implementing the game Rock Paper Scissors on ethereum. A running instance of this dapp should be reachable at block-paper-scissors.com.
Disclaimer
Both dapp and contracts are a work in progress, feel free to open issues if you find areas for improvement. The contracts have not been audited and were started as a learning project to improve / develop web3 development skills. Use at your own risk! The dapp has only been tested with the Metamask smart wallet, so it is recommended to use metamask when interacting with the dapp.
Local Development
Requirments
- NPM (7.5.3)
- Truffle (5.3.6)
Dapp
Run
- Change directory in to
vapp
directory - Install dependencies:
npm install
- Start development version of the dapp on
localhost:8080
:npm run serve
Contracts
Setup
- Change directory to top level directory
- Install dependencies:
npm install
Test Contracts
- Start a development ethereum instance listening on port
9545
: for example usingtruffle develop
- Run tests:
npm run test
Compile Deploy Contracts
- Start a development ethereum instance listening on port
9545
: for example usingtruffle develop
- Recompile / deploy contracts on loacal chain:
truffle migrate --rest