Designing the Money Game Smart Contract

The Money Game smart contract that we are creating in this section will have the following capabilities:

  1. When the smart contract is created, there will be a random number that is generated by the smart contract

  2. Only the creator of the smart contract can read the number that is generated by the smart contract

  3. Other users can interact with the smart contract to try and guess that number

  4. Each time a user submits a guess, they have to submit 0.25 ETH

  5. The smart contract will not allow the creator of the game to play the game

  6. Once the number is guessed correctly, the smart contract will release the funds to whoever guessed the number correctly.

 

This page is a preview of Creating an ERC20 Token on Ethereum

No discussions yet