Clear the field without touching a mine. This is my own version of the old Windows classic, built from scratch for the browser. You can play it in a 3.1, 95 or XP style window, on a laptop or a phone.
How to play
Click a square to open it. A number tells you how many of the eight squares around it hold a mine. Use the numbers to work out where the mines are, flag them, and open everything else. You win when every safe square is open.
- Open a square: left-click, or tap.
- Flag a mine: right-click, long-press on a phone, or switch on flag mode and tap.
- Open the squares around a number: click a number when you’ve flagged exactly that many mines around it. This is the quickest way to clear a board.
- Keyboard: the arrow keys move, Space opens, F flags and N starts a new game.
Your first click is always safe, and it opens up a patch around it. There are three sizes: beginner (9 by 9 with 10 mines), intermediate (16 by 16 with 40) and expert (30 by 16 with 99). Choose one from the Game menu. The game remembers your best time for each size in your browser.
Tips for winning
- Start with the corners and edges. They have fewer neighbours, so the numbers tell you more.
- A 1 with one hidden square next to it means that square is a mine.
- The 1-2-1 pattern along an edge usually means the two outer squares are mines and the middle one is safe.
- If a number already has all its mines flagged, every other square around it is safe, so open them.
- Don’t guess early. If you’re stuck, look for another part of the board that you can solve first, because opening it often helps.
The three window styles
The game works the same in every style. The buttons above the window switch between a 3.1-style window with a white menu bar, a 95-style window with grey bevelled edges, and an XP-style window with a blue title bar and rounded corners. It’s only the look: everything is drawn in code, and none of the artwork is copied from any other game.
Quick answers
Is my first click really safe?
Yes. The mines are placed after your first click, and they keep clear of that square and the ones around it, so you always get an opening.
Can I play on my phone?
Yes. Tap to open a square and long-press to place a flag. If that’s awkward, turn on flag mode and tap squares to flag them.
Does it save my progress?
It saves your best times and your choice of window style, in your browser only. Nothing is sent to a server.
Why does expert scroll sideways on a phone?
The expert board is 30 squares wide, which doesn’t fit on a narrow screen at a size you can tap. Scroll the window sideways to reach the rest of the board.
More retro games
This is part of a growing set on the retro games page. For something more nerdy, there are the browser games for sysadmins, including the 3 a.m. Pager.
Related projects
3 pages