DEV Community

BoosterHand
BoosterHand

Posted on

The Mines Multiplier Table Is Just Combinatorics (Python, Exact Odds)

Mines is the casino game where you pick tiles on a 5×5 board and try not to hit a mine. Every safe click raises a multiplier, and a lot of people look for a "Mines multiplier calculator" to know what they'll get. The good news: you don't need one. The whole multiplier table is two lines of combinatorics.

The math

With m mines on 25 tiles, the first click is safe with probability (25 - m) / 25. Each safe click removes one safe tile, so surviving k clicks in a row is:

P(survive k) = C(25 - m, k) / C(25, k)
Enter fullscreen mode Exit fullscreen mode

A fair game would pay 1 / P. A real game keeps its house edge, so the payout is RTP / P. With the common 99% RTP that is 0.99 / P.

The code

"""Exact Mines multiplier chart for a 5x5 board: payout after k safe clicks with m mines at a given RTP.
Full table with explanation: https://boosterhand.com/guides/mines-multiplier-chart/"""
from math import comb

def survive(m, k, tiles=25):
    return comb(tiles - m, k) / comb(tiles, k) if k <= tiles - m else 0.0

def multiplier(m, k, rtp=0.99):
    p = survive(m, k)
    return rtp / p if p else None

if __name__ == "__main__":
    clicks = [1, 2, 3, 5, 10, 15]
    print("mines | " + " | ".join(f"{k} clicks" for k in clicks))
    for m in (1, 2, 3, 5, 10, 15, 20, 24):
        row = [f"{multiplier(m, k):,.2f}x" if multiplier(m, k) else "-" for k in clicks]
        print(f"{m:5} | " + " | ".join(row))
Enter fullscreen mode Exit fullscreen mode

Output:

mines | 1 clicks | 2 clicks | 3 clicks | 5 clicks | 10 clicks | 15 clicks
    1 | 1.03x | 1.08x | 1.12x | 1.24x | 1.65x | 2.47x
    2 | 1.08x | 1.17x | 1.29x | 1.56x | 2.83x | 6.60x
    3 | 1.12x | 1.29x | 1.48x | 2.00x | 5.00x | 18.98x
    5 | 1.24x | 1.56x | 2.00x | 3.39x | 17.52x | 208.72x
   10 | 1.65x | 2.83x | 5.00x | 17.52x | 1,077.61x | 3,236,072.40x
   15 | 2.47x | 6.60x | 18.98x | 208.72x | 3,236,072.40x | -
   20 | 4.95x | 29.70x | 227.70x | 52,598.70x | - | -
   24 | 24.75x | - | - | - | - | -
Enter fullscreen mode Exit fullscreen mode

What the table tells you

3 mines, 5 clicks pays 2.00× and you get there 49.6% of the time. 3 mines, 10 clicks pays 5.00×, but only 19.8% of rounds make it.

Every cell has the same expected value. Multiply any payout by its probability and you get 0.99. More mines or more clicks only change how you lose the 1%: small, frequent wins versus rare, big ones.

There is no pattern to find. Each board is an independent random draw; corners, "hot tiles" and the previous layout change nothing.

Things to try

  • Pass rtp=0.97 to see a stingier game.
  • Compute the variance of one round for each setting: it explodes as the multiplier grows.
  • Simulate 1,000,000 rounds per setting and check every one converges to −1% of the money wagered.

Full table for 1–24 mines (with probabilities, in English, German, Polish and Italian): Mines multiplier chart. Interactive version with any RTP: Mines calculator. Code: GitHub.

18+. A probability exercise, not betting advice.

Top comments (0)