Code

Heads Or Tails Game Add-on for Crypto Casino

Heads Or Tails Game Add-on for Crypto Casino

About Heads or Tails Add-on

Heads or Tails is an add-on game for the Crypto Casino application. This game can not be installed and used on its own without having Crypto Casino purchased and installed first.

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

Game features

  • Ability to set bet amount
  • Ability to turn sound on / off
  • Full screen mode

Provably fair

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.

Game settings

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

Demo environment

Please sign up at Crypto Casino to test the application. You can use the following credentials to check the backend features:

user: demo@financialplugins.com, password: admin

System requirements

Support

Heads Or Tails Game Add-on for Crypto Casino - 1

Changelog

v1.0.0 - 14 April 2020
- Initial release.
by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey