Minesweeper

""Each time you dig, you will find a number. That number will tell you exactly how many mines are adjacent to your square...""

- Minesweeper The Movie Trailer

Minesweeper is a nice little puzzle game packed with every Windows operating system. When you start the game, first you must select the difficulty: beginner, intermediate or expert. The levels will affect the size of the board (9×9, 16×16, 16×30) and the number of mines (10, 40, 99) respectively. The level is randomly generated. By left-clicking any square on the grid, you will either open a new area, detonate a mine or find a number. That number tells you the number of adjacent mines. Right-clicking places flags where you think there's a mine.

Minesweeper is known to have quite a few little strategies:
 * If you have a 1 on a corner, it's a mine. Why? Because there's only one available tile adjacent. Be very careful, because while this technique is useful (and integral), if you fail a spot check and don't see that there's already a mine diagonal to your 1, you will probably die.
 * A 2 at the very edge of a wall adjacent to two hidden tiles means they're both mines.
 * 3 on a wall: they're all mines.
 * If you see the numbers "2 1 2" on a wall, the space adjacent the 2's are both safe and the space adjacent the 1 is a mine, and similarly if you see "1 2 1", the space in the middle is safe and both the 2 spaces diagonal from the "2" are mines. You may intuitively expect "2 1 2", averaging to 5/3, would imply more mines tend to be found adjacent to those 3 squares and "1 2 1", averaging to 4/3, would imply less, but you would be wrong.
 * A generalization of 3 along a wall: If you see two numbers that are adjacent (not diagonal, but sharing a side) to each other and they differ by 3, (such as 4 and 1, or 5 and 2) then all 3 squares on the other side of the larger number are mines and all 3 on the other side of the smaller are safe.

The world record for Expert difficulty is currently 31 seconds (previous record).


 * Bomb Disposal
 * Classic Cheat Code:
 * Cool Shades: Your sole reward for winning.
 * Failed a Spot Check: KABOOM!
 * Game Mod: There's a lot of open-source clones of this game, including several odd variants including hexagonal Minesweeper (imagine playing it in a beehive) and spherical Minesweeper.
 * Luck-Based Mission: Happens fairly frequently. See the article's image for an example. Basically, it amounts to knowing exactly how many tiles in a set have mines but not being able to confirm (with perfect accuracy) which ones in that set have mines, despite having cleared out the rest of the board. it's also the reason a perfect (non-cheating) AI doesn't exist for Minesweeper, too.
 * There's also a couple of other reasons a perfect AI doesn't exist, not least the NP-completeness of the problem.
 * Mercy Invincibility: In some versions, you cannot be killed on your first move.
 * The grid is randomized before your first click, and if that first click happens to be on a mine, it gets randomized again so that first square is empty.
 * This is differently programmed for different versions of Minesweeper. The Windows version will move a "First-click Mine" to the very top right square without regenerating a board.
 * The Vista/Windows 7 makes it so not only is the first square empty, so are all the adjacent squares. Naturally, this is turned off for when you replay the same layout.
 * Race Against the Clock: That clock will keep ticking until it reaches 999.
 * "What happens then?" "Nothing. You just suck."
 * Random Number God: At some point, you're probably going to have to guess. Better hope the god is on your side, or you can lose an hour ten minutes of cautious probing.
 * Randomly Generated Levels
 * Real Trailer Fake Movie: Minesweeper: The Movie
 * (Virtually) Unwinnable: Unless you're some sort of Jesus, you won't win on 668 mines.
 * Well, theoretically, you could probably use a debugger to find all the tiles with mines, but it would be more trouble than it would be worth.
 * Or, in the Vista/Windows 7 version which allows board repeats, just click, and die. Remember where all the mines are, and then press play again, and hope you remembered right.
 * Blow yourself up in the vista/7 version. Print Screen. Paste into Paint. Win.
 * Too Dumb to Live: "Hmm... There must be three mines around that 2, let's click he- Shit."
 * What Happened to The Mouse?: The smiley is strangely missing from the Vista/Windows 7 version.
 * X Meets Y: Mamono Sweeper is Minesweeper meets JRPG, with monsters and levelling-up.
 * And Clue Sweeper is Minesweeper meets Clue.