DAPP Game on ethereum blockchain deployed at Main Ethereum Network and Rinkeby Test Network.
Game Tutorial
Play game on your local
git clone https://github.com/showmeyourcode/Split-or-Steal-Game.git
cd Split-or-Steal-Game
cd dapp
npm install
npm start
What all helped build this
- Gitter community for web3.js & Solidity
- Solidity Documentation
- This blog post explaining commit reveal
- Firebase
- Google Analytics
- gh-pages
- React
- react-facebook
- react-ga
- react-input-autosize
How to test smart contract
Prerequisite
DOWNLOAD and RUN Ganache
USING REMIX
- Open remix(v0.4.21)
- Copy Paste contract in remix IDE
- Go to Run tab and in Environment select Web3 Provider
- Provide endpoint as http://localhost:7545 (That's where Ganache is running)
- In Run tab under Accounts you should see a lot of accounts with some ether.
- Select any account and hit Create at bottom.
- Now you should see all the methods listed.
- Just go ahead and play the game by hitting appropriate method in game play.
- Do not forget to mention Value in wei/ether while hitting a payble contract method.