Odds · mines

Mines odds calculator

In classic Mines the chance of opening N safe cells in a row is C(25 − M, N) / C(25, N), where M is the number of mines on a field of 25 cells. The calculator works out this chance and the fair multiplier. FAIRDRUM Mines works differently: its payout is set by the prize table in the contract, not by the choice of cells.

Calculator

49.57%chance of opening 5 safe cells in a row with 3 mines on the field

Safe cells to open: 5Mines on the field: 3

Approximately
1 in 2
Formula
C(22, 5) / C(25, 5)
Combination counts
26,334 / 53,130
Exact fraction
57 / 115
Fair multiplier
×2.018
Multiplier at a 7% share
×1.876
Chance of the next cell
85%

The calculator works on the classic model of the game: a field of 25 cells, mines placed at random, each cell opened by a separate decision. It does not describe FAIRDRUM Mines and does not help you win: it only shows the price of each step.

Formula

The field has 25 cells, M of them mines. You open N cells. The streak succeeds if all N cells come from the 25 − M safe ones. The number of such sets is C(25 − M, N). The number of all sets of N cells is C(25, N). The chance is the ratio of these two numbers.

C(n, k) is the number of combinations: how many ways there are to choose k items out of n when order does not matter. It equals n! / (k! × (n − k)!). Factorials are awkward to work out by hand, so it is easier to go one cell at a time: the chance of the first cell, then the second, then the third.

A worked example. 3 mines, we open 2 cells. The first cell is safe with a chance of 22 out of 25. The second, with a chance of 21 out of 24: one safe cell is already open. Multiply them: 22/25 × 21/24 = 77%. The combinations formula gives the same number: 231 / 300.

Each next cell is more dangerous than the one before: there are fewer safe cells left and just as many mines. With 3 mines the first cell is safe with a chance of 88%, and the sixth already with a chance of 85%.

Fair multiplier and paid multiplier

The fair multiplier is one divided by the chance. If the chance of the streak is 49.57%, the fair multiplier is ×2.018: at that multiplier the average return equals the bet. The game pays less. The difference is the project's share.

Paid multiplier = fair multiplier × (1 − share). The “Project's share” slider in the calculator shows this for any streak. The table below is the same example: 3 mines, 5 cells.

Project's shareMultiplierAverage return
1%×1.99799%
3%×1.95797%
5%×1.91795%
7%×1.87693%

The share does not depend on the number of mines. More mines means a higher multiplier and a lower chance. The average return stays the same: 1 − share. At FAIRDRUM the project's share is the same in all games. How it works is shown on the page “Project's share and return”.

Odds for 1 to 24 mines

Each cell of the table shows the chance of opening that many safe cells in a row and the fair multiplier for such a streak. A dash means there are not enough safe cells on the field. The numbers are computed on the page with the formula above.

Mines on the field1 cell3 cells5 cells10 cells
196%×1.04288%×1.13680%×1.2560%×1.667
292%×1.08777%×1.29963.3%×1.57935%×2.857
388%×1.13667%×1.49449.6%×2.01819.8%×5.055
484%×1.1957.8%×1.72938.3%×2.61110.8%×9.267
580%×1.2549.6%×2.01829.2%×3.4275.65%×17.692
676%×1.31642.1%×2.37421.9%×4.5692.83%×35.385
772%×1.38935.5%×2.81916.1%×6.2011.34%×74.701
868%×1.47129.6%×3.38211.6%×8.5860.595%×168
964%×1.56324.3%×4.1078.22%×12.1630.245%×408
1060%×1.66719.8%×5.0555.65%×17.6920.0919%×1,088
1156%×1.78615.8%×6.3193.77%×26.5380.0306%×3,265
1252%×1.92312.4%×8.0422.42%×41.2820.00875%×11,429
1348%×2.0839.57%×10.4551.49%×67.0830.00202%×49,527
1444%×2.2737.17%×13.9390.87%×1150.000337%×297,160
1540%×2.505.22%×19.1670.474%×2110.0000306%×3,268,760
1636%×2.7783.65%×27.3810.237%×422—
1732%×3.1252.43%×41.0710.105%×949—
1828%×3.5711.52%×65.7140.0395%×2,530—
1924%×4.1670.87%×1150.0113%×8,855—
2020%×5.000.435%×2300.00188%×53,130—
2116%×6.250.174%×575——
2212%×8.3330.0435%×2,300——
238%×12.50———
244%×25.00———

Mines at FAIRDRUM works differently

FAIRDRUM Mines has no choice of the number of mines and no “cash out” button. A round is from 10 to 100 bets of 0.01 SOL, and the smallest round on the site is 0.1 SOL. For each bet the contract picks a step of the prize table or the no-prize outcome. The choice is made by the round number: a secret whose fingerprint is recorded in the contract before the bet, mixed with the hash of the bet's block.

After that the field of 25 cells only shows the result. If the round has a prize, there will be exactly enough safe cells to reach its amount. If there is no prize, one of the first cells will turn out to be a mine. Which cells you click and in what order does not matter: the round's result is already recorded on the network.

This can be checked: the round number is visible in the settlement transaction, and anyone can recompute the step from it. How that is done is on the page “From hash to result”. Where the round number comes from is on the page “Provably fair”.

What the two games have in common. In both, a large multiplier is rare and the player's average result is negative: part of every bet goes to the project. The difference is who makes the decisions. In the classic game the player chooses the number of mines and the moment to stop, and the spread of the result depends on that. At FAIRDRUM the spread is set by the table, the same for everyone.

The calculator above is not about FAIRDRUM. The combinations formula describes the classic game. The odds of FAIRDRUM Mines are only in the table below.

FAIRDRUM Mines table

The table has 6 steps. A prize lands on roughly 9.8% of spins. The odds are taken from the contract's constants when the site is built, and the same numbers appear on the game page.

Chance per spin
MultiplierPrize per spin, SOLChance per spinBest prize in a round of 10 bets
×30.036.07%1 in 1634.1%
×60.062.45%1 in 4121.5%
×150.150.931%1 in 1079.7%
×500.50.294%1 in 3403.26%
×2502.50.0441%1 in 2,2680.497%
×1,000100.0049%1 in 20,4130.0554%
“Spin again”: a free repeat—11.6%—
No prize—78.6%30.9%

How to read the last column. The field shows the best bet of the round. The column gives the chance that this step turns out to be the round's best prize. The calculation includes the “Spin again” outcome: with a chance of 11.6% a spin gives a free repeat at the expense of the prize bank.

The table's prizes return about 87.7% of a bet on average. On top of the table, three jackpots are drawn on every bet; they are not included in the calculation on this page. About 7% of every bet is the project's share. A single prize cannot be larger than 1/4 of the prize bank.

You can compare this table with other games on the page “Odds in all games”.

Questions

How do I calculate Mines odds?

Divide the number of ways to choose N cells from the safe ones only by the number of ways to choose N cells from all of them. For a field of 25 cells with M mines that is C(25 − M, N) / C(25, N). A chain of fractions gives the same answer: the chance of the first cell is multiplied by the chance of the second, and so on.

What is the chance of opening 5 safe cells with 3 mines?

49.57%, the exact fraction being 57 / 115. The fair multiplier for such a streak is ×2.018. This is a calculation for the classic game, not for FAIRDRUM Mines.

Does it matter which cell I pick?

In the classic game all closed cells are equal: the chance of a mine is the same in each, so the order and pattern of clicks do not change the chance. In FAIRDRUM Mines the choice of cells affects nothing: the round's payout is computed by the contract from the round number and recorded on the network before the field opens. How to see this on the network is on the page “From hash to result”.

How many mines give the best odds?

There is no such number. Fewer mines means a higher chance for each cell and a lower multiplier. More mines means the opposite. With the same project's share, the average return is the same for any number of mines. In FAIRDRUM Mines you do not choose the number of mines.

How is FAIRDRUM Mines different from classic Mines?

In the classic game you choose the number of mines and decide when to stop. FAIRDRUM has neither decision: the contract picks, from the round number, one of the 6 steps of the prize table or the no-prize outcome, and the field shows the result. The table is the same for all players and is written in the contract.

What is the chance of a ×1,000 prize in FAIRDRUM Mines?

0.0049% per spin, which is roughly 1 in 20,413. In a round of 10 bets, the chance that the best prize turns out to be ×1,000 is 0.0554%. A single prize cannot be larger than 1/4 of the prize bank.

Read on

18+. On average players get back less than they bet. Play only with SOL tokens you are prepared to lose.