In-Game Crash Casino
Crash is a popular real-time gambling game. The rules are simple: place a bet and wait for the multiplier to reach a predetermined value through randomly generated hashes before cashing-out your winnings. We display a multiplier that increases from 1.00X until the game crashes. The objective is to cash-out before the game (multiplier) crashes. If gamers cash out at the right time, they significantly multiply their wager. If not, they lose all the crypto ($JOSH tokens) they had bet.
The code is open-source and is made using hash functions, which generate random hash values which act as the multiplier values.
We have put in an additional functionality of gamers being able to place a new bet after they cash-out in the same round. If they decide so, they have to wait
a) 3 seconds if multiplier is below 8
b) 6 seconds if multiplier is below 14
c) 9 seconds if multiplier is above 14
to place a new bet. However, if the multiplier crashes after they make the new bet, they lose all the earnings in that round.
Copy link