This smart contract is a gambling game. It can be played with only two players, one player chooses odd or even and the second player tries to guess. If the second player guesses correctly, he will receive all the money that was cleared at the beginning. If the second player guesses wrong, the first player gets all the money.
- The manager of the contract can only use the pickWinner function
- If player one and player two is the same person money will be refund.
- Before the initialize this contract you need to clarify the betValue amount.
- For choosing [odd = 1]
- For choosing [even = 0]
- Before the choice, you need to pay the same betValue amount.
Note: betValue taking as an Ether not Wei
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.