Skip to content

showmeyourcode/Split-or-Steal-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split-or-Steal-Game

DAPP Game on ethereum blockchain deployed at Main Ethereum Network and Rinkeby Test Network.

Game Tutorial

How to Play

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

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.

DAPP Game on ethereum blockchain