> For the complete documentation index, see [llms.txt](https://docs.cybercookie.party/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cybercookie.party/casino.md).

# Casino: Cookie Spin & Mines

The casino is on **Earn → Casino**. Two games. Both are **server-authoritative** (the RNG and, for Mines, the secret mine positions live on the server — the client can't peek or cheat) and both feed the shared **Top jackpot / Total won / Total lost** counters shown at the top of the tab.

> **Gamble responsibly with coins you can afford to lose.** Both games have a built-in house edge, so over many plays you lose on average. They're a coin sink with upside, not a reliable income source.

***

## 🍪 Cookie Spin

A single-shot bet with weighted multipliers.

* **Bet range:** 10,000 – 1,000,000.
* You bet, it rolls once, you win `bet × multiplier` (or lose the bet on a ×0).

### Exact odds

| Chance | Multiplier | Outcome       |
| ------ | ---------- | ------------- |
| 55%    | ×0         | lose your bet |
| 25%    | ×1.5       | +50%          |
| 12%    | ×2         | double        |
| 6%     | ×3         | triple        |
| 2%     | ×5         | jackpot       |

### Expected value

```
EV = 0.55×0 + 0.25×1.5 + 0.12×2 + 0.06×3 + 0.02×5
   = 0.895  →  you keep ~89.5% of your bet on average
```

**House edge ≈ 10.5%.** Bigger bets don't change the odds — they just scale the variance.

***

## 💣 Mines

A cash-out game on a **5×5 grid (25 tiles)**. You choose how many **mines** to hide (1–24), then reveal tiles one at a time. Each safe tile raises your multiplier; hit a mine and you lose the bet. **Cash out** any time to bank `bet × current multiplier`.

* **Bet range:** 10,000 – 1,000,000.
* The bet is only settled when you **bust** (lose it) or **cash out** (win the net). If the server restarts mid-game, the round is voided and you lose nothing.

### The multiplier formula (exact)

After revealing `k` safe tiles with `M` mines on the board:

```
multiplier(k) = 0.97 × Π (from i=0 to k−1) of  (25 − i) / (25 − M − i)
```

The `0.97` is a **\~3% house edge**. The product term is the fair "inverse probability" of having survived `k` reveals.

### Risk: chance of hitting a mine on the *next* tile

```
P(next tile is a mine) = mines_remaining / tiles_remaining
```

So with 3 mines and no reveals yet: `3/25 = 12%` per tile. As you reveal safe tiles, the danger per remaining tile **rises** (fewer safe tiles left), while the multiplier climbs.

### Multiplier table

Rows = number of **mines** on the board, columns = number of **gems** (safe tiles) you've revealed. The value is your cash-out multiplier at that point (`×0.97` house edge already applied). `—` means there aren't that many safe tiles left.

| Mines \ Gems | 1      | 2      | 3       | 4        | 5         | 8         | 12        | 20        |
| ------------ | ------ | ------ | ------- | -------- | --------- | --------- | --------- | --------- |
| **1**        | ×1.01  | ×1.05  | ×1.10   | ×1.15    | ×1.21     | ×1.43     | ×1.87     | ×4.85     |
| **2**        | ×1.05  | ×1.15  | ×1.26   | ×1.39    | ×1.53     | ×2.14     | ×3.73     | ×29.10    |
| **3**        | ×1.10  | ×1.26  | ×1.45   | ×1.68    | ×1.96     | ×3.28     | ×7.80     | ×223.10   |
| **4**        | ×1.15  | ×1.39  | ×1.68   | ×2.05    | ×2.53     | ×5.16     | ×17.16    | ×2454.10  |
| **5**        | ×1.21  | ×1.53  | ×1.96   | ×2.53    | ×3.32     | ×8.33     | ×40.04    | ×51536.10 |
| **7**        | ×1.35  | ×1.90  | ×2.73   | ×4.01    | ×6.01     | ×23.98    | ×271.72   | —         |
| **10**       | ×1.62  | ×2.77  | ×4.90   | ×8.99    | ×17.16    | ×163.03   | ×11086.35 | —         |
| **15**       | ×2.42  | ×6.47  | ×18.59  | ×58.43   | ×204.51   | ×23313.95 | —         | —         |
| **20**       | ×4.85  | ×29.10 | ×223.10 | ×2454.10 | ×51536.10 | —         | —         | —         |
| **24**       | ×24.25 | —      | —       | —        | —         | —         | —         | —         |

More mines = faster multiplier growth **but** far higher bust risk. Fewer mines = safer, slower climbs. Your payout is `bet × multiplier` when you cash out.

### Strategy

* **Fewer mines (1–3):** low variance, small steady multipliers. Good for grinding modest profits.
* **More mines (10–24):** high variance, big multipliers, big bust chance — lottery mode.
* **Always cash out** before greed catches up: the expected value of the *next* reveal is `(survival chance) × (next multiplier) − (current, banked value)`. Once the marginal reveal is negative EV for your risk tolerance, cash out.
* Because of the 3% house edge, the long-run EV is slightly under 1.0 no matter your mine count — it's the **variance** you're choosing.

Next: [Tasks, Daily Crate, Referrals & Codes →](/tasks-rewards.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cybercookie.party/casino.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
