/coin-flip

Primary LanguageJavaScript

Coin Flip

Game rules

  1. Create a coin flip game for x amount of ether and choose heads or tails
  2. Other player can joina game for the same amount of ether and should see you in the dropdown list
  3. Winner gets all ether

Install

  1. npm install
  2. truffle compile and truffle migrate
  3. Copy contract address and past it in a .env file following .env.example
  4. npm run start