There is only one single rule:
If there are at least three players playing the game, at some random moment of time a user, who payed more money to the contract than others receives all the money sent to the contract. Sounds easy, right?
And what’s cool about this game is that you can come with different strategies on when to send money to the contract, how often and etc. If there are several people, who sent the same amount of Ether by the end of the game, the winner is the person who was first in terms of making a transaction to the contract.
PLAY IT!
In order to play you just need to send some amount of Ether to the contract address: 0xE0C0c6bE9a09c9df23522db2b69D39Ccb3c3DC98 and you will automatically be taking part in the game!
If you want to see what exactly is happening "under the hood" then welcome to the source code of the contract!
WHO IS THE LEADER?
HOW MUCH MONEY DID I PAY?
HOW MUCH DID MY FRIEND PAY?
WHAT IS THE TOTAL BANK?
To find answer to all of these questions you should take a look at the following LINK. Below are the main sections where you could take a look at.
The first one is needed to see how many players are currently in the game.
The next one (getLeader) shows the user who leads the game. Where Address is the address of the user who sent more money than others, and Uint256 here is the amount of ether (in Wei) sent to the contract in total by user with the address above.
Get Total Bank shows you how much money there are currently in the game in Wei.
In bets section you could enter you address or any friend's address to see how much money you or they have paid to the contract.