Mines
How a Mines result is derived, step by step. Every step is public and can be reproduced from the seeds.
Derivation
- 01
Start with tiles [0 … 24]. Fisher–Yates: for i = 24 down to 1, j = floor(float(24 − i) × (i + 1)), swap tiles[i] and tiles[j].
- 02
The mines are the first m tiles of the shuffled list. They are fixed when the round starts, before the first reveal.
- 03
One nonce covers the whole round.
float(k) and the rest of the notation are defined in the byte stream.
Run these steps on a bet of your own, in your browser.
Open the verifierRules that fix the payout
A 5 × 5 board hides 1 to 24 mines. Reveal tiles one at a time.
Each safe tile raises the multiplier. Cash out after any safe tile; reveal a mine and the stake is lost.
After k safe tiles with m mines the multiplier is 0.99 × C(25, k) / C(25 − m, k).
The full board is shown after the round and can be verified.