Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.68 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.68 KB

Web3_CricketGame

Solidity code for Web3 based Computer version of conventional Hand Cricket Game

How to Play

  • There is a method which takes input from user i.e., a number between 0 to 6.
    • (0) gives command to stop game.
    • (1 - 6) are runs.
  • Computer is batsman who randomly guesses a number and if it is same with the number you feed as input computer is out, otherwise computer hits run of number guessed by computer and score increases by that number
  • If game is ended and you still want to play then call Reset() method

Work Details

  • Created and Tested code in Remix Ethereum IDE
  • Choosing the solidity plugin
  • Here Solidity code (one.sol) and (scenario.json) file of all transactions is uploaded in the repository
  • Workspace

    Solidity Complier

    Solidity Code

    Deploy and Run ____________ Deployed Contracts