Dice Game

How does it work

The protocol generates a random number via chainlink VRF service in a range from 0 to 99 and compares to the range or numbers set by players.

The probability of winnings and win coefficient are in strict dependence of the winning chance and the width of the range.

Math

P=(r/100)P=(r/100)
Over:y=(((x+1)/(99x))(1b)+1)(1a)Over : y = (((x + 1) / (99 - x)) (1-b) + 1 )(1 - a)
Undery=(((100x)/x)(1b)+1)(1a)Under: y = (((100 - x) / x) (1-b) + 1 )(1 - a)
  • P means probability of winnings

  • r means how many numbers are in the range set by the player

  • Over&Under means range

  • y=multiplier

  • x=number

  • a=1% ( game fee)

  • b=2%(house edge)

For example:

Bet 100 BNB,

x=49, range is Under 49, a total of 49 numbers (0 to 48), so the probability of winnings is 49%,

Multiplier is x2.00, and player will received 200 BNB if he/her win.

We encourage more developers to use our protocol to build more games.

Last updated