# 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.

{% embed url="<https://youtu.be/WKnOPiXCBQs>" %}

![](https://3364651208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA7TVPFcfcgMUN2pxyWqm%2Fuploads%2Fs8Z58fdBkeTDCPzew7Vb%2FCrash.png?alt=media\&token=31ab97e1-209f-44ba-ae59-31f889160014)
