AI Minesweeper

Reveal  ·  Deduce  ·  Flag — Solver Hints & No-Guess Boards

Classic Minesweeper with an honest AI: every hint comes from a real constraint solver that proves cells safe, spots certain mines, and computes exact odds when logic runs out. First click is always safe.

Mines
10
Time
0:00
Best

How Do You Play Minesweeper?

  • Click any cell to start — the first click is always safe and opens a blank area.
  • Read the numbers: each one counts the mines in its up-to-eight neighboring cells. A 1 touching a single hidden cell means that cell is a mine.
  • Flag the mines with a right-click, a long-press on touch screens, or the 🚩 Flag toggle.
  • Chord to go faster: when a number already has the right amount of flags around it, click the number to reveal its remaining neighbors at once.
  • Win by revealing every cell that isn't a mine — the clock stops on your last reveal, and your best time per difficulty is saved in your browser.

New to the game? The full beginner walkthrough is in How to Play Minesweeper.

An AI Solver, Not a Cheat Sheet

The 💡 Hint button runs a real constraint-satisfaction solver on exactly what you can see. Every revealed number becomes a constraint — "two mines among these five hidden cells" — and the solver combines them, including the subset logic behind classic patterns like 1-2-1, to find cells that are provably safe or provably mines. It tells you which rule it used, so every hint is also a lesson.

When no proof exists, it enumerates every mine arrangement consistent with the numbers and reports each cell's exact mine probability — then recommends the safest guess, the same way strong players decide when they must gamble.

No-Guess mode goes one step further: the generator runs this same solver on candidate boards and only serves ones it verified are clearable by pure logic from your first click. No more losing to a 50/50 coin flip on the last two cells.

Frequently Asked Questions

What do the numbers mean?
A number counts the mines in the cells touching it — all eight neighbors, fewer at edges and corners. Cells with zero neighboring mines open automatically as a blank region. The numbers never lie.

Is the first click always safe?
Yes. Mines are placed only after your first click, keeping the whole 3×3 area around it clear, so you always start with an open region — standard modern Minesweeper behavior.

What are the difficulty levels?
Beginner is 9×9 with 10 mines, Medium 16×16 with 40, Expert 30×16 with 99 — the classic Windows layouts — plus a Custom board where you pick width, height and mine count.

How does the AI hint work?
It converts every visible number into a constraint and solves the system: provably safe cells, certain mines, or — when logic alone can't decide — the exact probability that each cell hides a mine. Nothing is read from the hidden board; the solver sees only what you see.

What is No-Guess mode?
Boards verified by the solver to be clearable by deduction alone from your first click. If you're stuck in No-Guess mode, a logical move always exists — ask for a hint and it will show you the rule you missed.

Is it free? Does it work offline?
Completely free, no download, no sign-up. Board, solver and best times all run client-side, so once loaded it keeps working without a connection. More games: AI Chess, AI Connect 4, AI Checkers, AI Othello, AI Sudoku or the games hub.