Mines

from Simon Tatham's Portable Puzzle Collection


Drag to resize the puzzle. Right-click to restore the default size.

Link to this puzzle: by game ID by random seed

If you've been reading this message for more than a second or two, then this WebAssembly puzzle doesn't seem to be working in your web browser. Sorry!

More information

Most modern browsers should support WASM. I've had reports of success from:

  • Firefox 87.0
  • Chrome 89.0.4389.114
  • Safari 14.0.3 (16610.4.3.1.7)
  • Edge 89.0.774.68
  • Opera 75.0.3969.149

If this puzzle isn't working in one of those browsers (or a later version), check to see whether you have any local configuration that might have turned off WebAssembly completely, or some kind of blocking software that might have prevented the WASM code from being downloaded in the first place.

(For example, in Firefox, it's possible to turn off WASM completely by setting javascript.options.wasm to false in the about:config interface. If you've done that, or something analogous in another browser, this puzzle won't run.)

In other browsers, the problem might be that WebAssembly isn't supported at all (for example, Internet Explorer 11), or that a browser update is needed.

If you think that your browser should support WebAssembly, but this puzzle still isn't running, then please report the problem, including as much diagnostic information as you can find.

In particular, try opening your browser's Javascript error console and then reloading this page, and tell me if it reports any error messages.

Also, if your browser has a network diagnostic tab, try the same experiment, to make sure it is successfully loading both of the auxiliary files mines.js and mines.wasm.


Try to expose every cell of the grid that does not contain one of the hidden mines, without opening any cell that does contain a mine.

Click in a grid cell to open it. Every opened cell is marked with the number of mines in the surrounding cells, if there are any; if not, all the surrounding cell are automatically opened. Grid cells that touch only at a corner still count as adjacent, so on the default square grid setting, a cell has 8 neighbours, not 4.

Right-click in a cell to mark it with a flag if you think it is a mine. If a numbered cell has exactly the right number of flags around it, you can left-click in it to open all the cells around it that are not flagged.

The first cell you open is guaranteed to be safe, and (by default) you are guaranteed to be able to solve the whole grid by deduction rather than guesswork. (Deductions may require you to think about the total number of mines.)

As well as playing on a square grid, you can also choose to play the game on a collection of other tilings. Try several and see which you think is most fun. (Beware of tiles that touch at a corner unexpectedly, or in some cases, tiles that nearly touch but not quite.)

If you think you've found a grid which can't be solved without guessing, think harder! Mines was written in 2005, and since it was written, I've had over 50 reports claiming that a grid had two solutions, or required guessing at a safe space to open. None of those reports turned out to be a real bug in the game generation.

Full instructions | Back to main puzzles page