Solidity code for Web3 based Computer version of conventional Hand Cricket Game
- 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