Skip to content

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

License

Notifications You must be signed in to change notification settings

Prateekphi/Web3_CricketGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    About

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

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published