Skip to content

Instantly share code, notes, and snippets.

@Blablaxa
Blablaxa / crash.clj
Created February 16, 2021 22:17 — forked from matthewdowney/crash.clj
The deterministic algorithm behind the casino game https://roobet.com/crash
(ns user.crash
"The deterministic algorithm behind the casino game https://roobet.com/crash.
Includes code to
- generate a crash point from a game hash
- generate all game hashes and crash points since the start of the game
- simulate betting strategies (n.b. this is just for fun, as there's no way
to make a bet with a positive expected value)"
(:require [pandect.algo.sha256 :as sha]))