Minesweeper: Is It Logic or Luck?
You click a cell, a mine goes off, and the game is over. It is easy to decide that Minesweeper is a game of luck. It mostly isn’t. Nearly every move can be worked out from the numbers on the board, and the players who win most often are the ones who know a handful of patterns by heart.
But luck does play a part. Sometimes the numbers really can’t tell you which cell is safe, and you have to guess. This guide shows you how far logic takes you, and how to guess well when it stops. Everything here works in Minesweeper on NovaSolitaire.
In the grids below, # is a covered cell, . an open cell with no mines around it, and a digit an open cell’s number. Columns have letters and rows have numbers, as on our board, so A1 is the top left.
The first click is free
On NovaSolitaire, the mines are placed only after you open your first cell, and never in that cell or the eight around it. So your first click always lands on a cell with no mines around it, and an area opens by itself.
Where you click still matters. In the middle of the board, nine cells are sure to be clear. In a corner, the clear area is only four cells, because a corner cell has just three neighbors. That is why Hint suggests the middle when you haven’t opened anything yet.
Two rules that solve most of the board
A number tells you how many mines touch that cell, diagonals included. From that come two simple rules:
- If a number has exactly as many covered neighbors as its value, they are all mines.
- If you already know where all of a number’s mines are, its other covered neighbors are safe.
The inside corner of an opening is a good place to see both at work:
A B C D
1 . . . .
2 . 1 1 1
3 . 1 # #
The 1 on B2 has only one covered neighbor, C3, so C3 is a mine. The 1 on C2 touches C3 and D3, and its one mine is C3, so D3 is safe. Open it.
The patterns worth learning
When a straight row of numbers runs along a row of covered cells, the same few patterns keep coming back.
1-1 against a wall. Here column A is the board’s left edge, and row 3 is open:
A B C D
1 # # # #
2 1 1 2 1
3 . . . .
The 1 on A2 touches only A1 and B1, so one of those two is a mine. The 1 on B2 touches A1, B1 and C1, and that same mine is its only one. So C1 is safe. Now the 2 on C2 has just two covered neighbors left, B1 and D1: both are mines, and A1 is safe too.
1-2: the third cell is a mine. When a 2 stands beside a 1 along a covered row, the cell beyond the 2 is a mine. The 2 needs two mines among its three covered cells, but the two it shares with the 1 can hold one mine at most.
1-2-1. Combine 1-2 from both sides and you get the most famous pattern of all:
A B C D E
1 # # # # #
2 1 1 2 1 1
3 . . . . .
Read the 1-2 on B2 and C2 from the left: D1 is a mine. Read the 1-2 on D2 and C2 from the right: B1 is a mine. That is the 2’s two mines, so C1 is safe, and so are A1 and E1. In short: a mine straight across from each 1 of the 1-2-1, and nothing across from the 2.
1-2-2-1. The same reasoning gives its cousin: the two mines lie straight across from the two 2s, and the cells across from the 1s are safe.
When a pattern doesn’t fit at first, subtract the mines you already know. A 3 that touches one mine you have found works like a 2 for the cells that are left, and very often that turns a messy corner into a 1-2 or a 1-1.
Count the mines left
The Mines counter shows the mines less the flags you have placed. If your flags are right, that is the number of mines still hidden. Near the end, it can settle a question the numbers alone can’t: with one mine left and two possible places for it, every other covered cell on the board is safe.
The counter also tells you how risky a cell with no numbers around it is. Each level has its own density:
- Beginner, 9 × 9 with 10 mines: about 1 cell in 8 is a mine.
- Intermediate, 16 × 16 with 40 mines: about 1 in 6.
- Expert, 30 × 16 with 99 mines: about 1 in 5.
As you play, divide the mines left by the covered cells without a flag, and you have a rough idea of the chance that a cell no number touches is a mine.
When a guess is forced
Sometimes two cells share one mine and nothing on the board can tell them apart. Our Hint button says so plainly: “No cell can be proved safe: you’ll have to guess”. When that happens, guess well:
- Solve everything else first. Opening another part of the board may give you the number that decides your guess. Guess only when nothing else is left.
- Avoid a 50/50 if you can. A pure 50/50 is a coin toss. A cell far from any number, in an untouched area, is often much safer: on Expert, roughly 1 in 5 is a mine, not 1 in 2.
- Pick the guess that teaches you the most. Choose a cell that, if it is safe, will give you a number that solves its neighbors, so one guess doesn’t lead straight to another.
- Edges and corners open more often. An edge cell has only five neighbors and a corner cell three, so they are more likely to have no mines around them and open a whole area.
- When it really is 50/50, decide and move on. No amount of staring changes the odds.
So, logic or luck?
Mostly logic. On NovaSolitaire, we tested a player over a thousand boards of each level: it opens the middle cell, then follows only our hints, which never guess. That player cleared about 80% of Beginner boards, about half of Intermediate ones and about 1 in 20 Expert boards without a single guess. Hint reads one number at a time or compares two, so a sharper eye can sometimes solve a few more.
On the other boards the hints ran out before the end, and on Expert that happened in almost every game. A 2000 paper in The Mathematical Intelligencer, “Minesweeper is NP-complete”, even showed that telling whether the numbers on a board can all be right at once is, in general, an NP-complete problem: no one knows a fast method that works on every possible board, however large. On a real board, though, the patterns take you a long way, and a good guess does the rest.
Minesweeper on NovaSolitaire
- Three levels: Beginner, Intermediate and Expert, in their usual sizes. Each level keeps its own stats and best time.
- Hint never guesses. It points to a cell the numbers prove safe, a mine to flag, or a flag the numbers prove wrong. Use it to learn: when it highlights a cell, find the pattern that proves it.
- Flags are optional. You win when every safe cell is open; the game flags the last mines for you.
- Open around a number. When a number has as many flags around it as its value, click or tap it to open its other neighbors at once. Check your flags first: a wrong one sets off a mine.
- No Undo, no Restart. Either would give away the mines. Share a deal at the end instead: a friend who opens the same first cell gets the same board.
Ready to test your logic? Open a game of Minesweeper, start in the middle, and look for your first 1-2-1.
Sources
- Wikipedia, “Minesweeper (video game)” (the usual level sizes, the 2000 paper “Minesweeper is NP-complete” and the problem it proved hard)
- Minesweeper Strategy, “Patterns” (1-2-X, 1-1-X at a border, 1-2-1, 1-2-2-1, reduction)
- Minesweeper Strategy, “Guessing” (guess only when forced, edges more likely to open, a random cell safer than a 50/50, useful guesses, Expert’s mine density)