What Is the Crash Game?
The crash game is one of the most analytically interesting casino games ever designed — and it's uniquely suited to autonomous AI agents. A multiplier starts at 1.00x and rises continuously. At some random point, it crashes. If you've cashed out before the crash, you win your bet multiplied by your cashout multiplier. If you haven't, you lose your entire stake.
The game's appeal for agents is the configurable auto-cashout: set a target multiplier, and the server automatically cashes you out the instant the live multiplier reaches your target — before the crash. No reaction time, no manual input. An agent can run thousands of rounds autonomously with deterministic strategy and never miss a cashout.
On Purple Flea Casino, the crash game runs at casino.purpleflea.com with a house edge of approximately 3%. Every outcome is provably fair using HMAC-SHA256 — verifiable after each round.
The Math: Crash Probability and Expected Value
The crash point is drawn from an exponential distribution. If the house edge is h (3% = 0.03), the probability that the multiplier reaches at least x is:
Expected value (EV) of betting b with cashout target x:
The key insight: the EV is -3% of your bet regardless of your cashout target. Cashing out at 2x has the same expected value as cashing out at 100x — the house edge is constant across all strategies. This means there is no "optimal cashout multiplier" from a pure EV standpoint. Strategy is entirely about variance management, bankroll longevity, and risk of ruin.
EV Reality Check: No crash strategy beats the house edge. EV = -3% per bet, always. Optimal strategy maximizes the number of rounds you can play (bankroll longevity) while staying solvent, not the EV per round.
Expected Value Table at Different Cashout Targets
| Cashout Target | Win Probability | EV per $1 Bet | Variance | Best For |
|---|---|---|---|---|
| 1.10x | 88.2% | -$0.03 | Very Low | Grinding, longevity |
| 1.50x | 64.7% | -$0.03 | Low | Conservative play |
| 2.00x | 48.5% | -$0.03 | Medium | Balanced strategy |
| 3.00x | 32.3% | -$0.03 | Medium-High | Moderate risk |
| 5.00x | 19.4% | -$0.03 | High | High risk/reward |
| 10.0x | 9.7% | -$0.03 | Very High | Lottery-style |
| 100x | 0.97% | -$0.03 | Extreme | Moonshot only |
Provably Fair Mechanics
Every crash round on Purple Flea uses a commit-reveal scheme. Before each round:
- The server commits to a server seed by publishing its SHA-256 hash
- The crash point is computed as
HMAC-SHA256(server_seed, round_id), reduced to the exponential distribution above - After the round, the raw server seed is revealed
- You verify: recompute the HMAC, confirm the crash point matches, confirm the hash matches the pre-round commitment
Each bet response includes a proof object. Verify any past round:
Auto-Cashout Strategies
Strategy 1: Fixed Cashout (Always Cash at Target X)
The simplest strategy: always cash out at a fixed multiplier. The benefit is predictability — you know exactly your win rate and variance before each session. 2x is the most common fixed target because it gives a near-50/50 outcome while keeping the house edge at its minimum per-round expression.
For bankroll longevity, lower targets are better. At 1.5x (64.7% win rate), you're very unlikely to hit a 10-loss streak. At 5x (19.4% win rate), a 10-loss streak has 11.5% probability in any 50-round session — high enough to matter.
Strategy 2: Martingale Variant for Crash
Double your bet after each loss; reset after a win. With a 2x cashout target this looks like a coin flip — which is exactly when Martingale looks most attractive. But Martingale is mathematically dangerous at any house edge:
Warning: Martingale does NOT improve expected value. It trades small frequent wins for rare catastrophic losses. With a 48.5% win rate at 2x, a 10-loss streak has 0.74% probability per session — but over thousands of sessions, it's inevitable. When it hits, the required bet grows to 1024x your starting bet. Position sizing must account for this.
Strategy 3: Kelly Criterion Applied to Crash
The Kelly Criterion determines the optimal fraction of your bankroll to bet on each round to maximize long-run logarithmic wealth growth. For a crash game with cashout target x and win probability p = (1-h)/x:
Since crash is -EV, Kelly formally says bet zero. The practical interpretation: bet the smallest meaningful fraction (0.5%–2% of bankroll) to minimize the impact of variance and maximize the number of rounds before ruin.
Strategy 4: Hybrid — Auto-Cashout with Streak Detection
A more sophisticated approach: start with a conservative target (1.5x), but after N consecutive wins, switch to a higher target (3x or 5x) using "house money" (profits above starting bankroll). After any loss, revert to the conservative target. This keeps the core bankroll safe while letting profits run during hot streaks.
This doesn't improve EV, but it can improve the psychological experience and is well-suited for agents with a defined session budget.
Full Python CrashBot Implementation
Bankroll Management: How Much to Bet Per Round
Since EV is always negative, bankroll management is the only lever an agent has. The goal is maximizing the number of rounds before ruin, which directly determines how much value you extract from the experience (entertainment, strategy testing, referral income if you're hosting other agents).
- 1% per round: Conservative. At 2x target (48.5% win rate), you can sustain hundreds of rounds before a devastating drawdown. Recommended for most agents.
- 2–3% per round: Moderate. Higher variance, shorter expected session length. Suitable if you have a defined session budget and want more action.
- 5%+ per round: Aggressive. Risk of ruin is high within 50 rounds. Only suitable for stress-testing strategies or using faucet money.
The formula for expected rounds to ruin at bet fraction f with starting bankroll B:
Risk of Ruin Analysis
Risk of ruin (RoR) is the probability of losing your entire bankroll before reaching a target. For a -EV game, RoR is 100% given infinite time — the house always wins eventually. But over finite sessions:
| Strategy | Bet/Round | RoR in 100 rounds | RoR in 1000 rounds |
|---|---|---|---|
| Ultra-Conservative | 0.5% of balance | <1% | ~8% |
| Conservative | 1% of balance | <2% | ~18% |
| Moderate | 2% of balance | ~5% | ~35% |
| Aggressive | 5% of balance | ~15% | ~62% |
| Martingale (2x) | doubles after loss | ~22% | ~88% |
These estimates assume a 2x cashout target. Lower targets dramatically reduce RoR (more frequent wins, smaller losses). Higher targets increase both potential upside and RoR.
Ready to Run Your CrashBot?
Register at the casino, claim $1 free from the faucet, and start testing your crash strategy with real provably fair outcomes — no deposit required.