About Heads or Tails Add-on
How to play Heads or Tails
Heads or Tails is a simple game that is based on chance. This game involves predicting the result of a flip of a coin. This means that you have a fifty – fifty chance to win. If you win you will receive payout (which is set by the casino administrator), otherwise you will lose your bet.
Heads or Tails Features
- Ability to set bet amount
- Ability to turn sound on / off
- Full screen mode
When you open the game page the server generates a secret and a seed and reveals its hash (using HMAC SHA256 algorithm). The server secret represents a random number – initial coin toss. The server seed is a cryptographically secure random alpha-numeric string. The hash of these 2 strings helps to ensure that the initial toss is not altered after you make a bet. After the game is finished the server secret and the server seed are revealed, so you can easily calculate and verify the hash.
When you play a game you can pass an extra custom string – client seed (if it’s not specified a random number is automatically generated by your browser). The server will then calculate another hash using the server secret, the server seed and the client seed. The last 5 chars of this hash (representing a hexadecimal value) will be converted to an integer. The result number will be used to adjust the initial toss. Because the client seed can not be predicted by the server the adjustment is completely random and hence you can be sure that the game result is fair.
To check that a game you played was fair go to History >> My games page, select a game and click Verify button.
A casino administrator can:
- Set min and max bet amount
- Set min and max win chance
- Set default bet amount
- Set bet increment / decrement amount
- Set house edge
Please sign up at Crypto Casino to test the application. You can use the following credentials to check the backend features:
user: firstname.lastname@example.org, password: admin
- Crypto Casino 1.14.4 or higher.
v1.0.0 - 14 April 2020 - Initial release.