Code Title: Instant Win
This allows you to reveal the vast majority of Free Spaces (or in some cases, the entire field) in a single click. When setting up a Custom game, simply set the field size to a Width of 24 and a Length of 30 (or above). Then set the amount of Mines to 10.
Code Title: Mine Checker
Make sure the Minesweeper window is in focus, and then type the following code via the keyboard: xyzzy, ENTER, SHIFT.
Now when you start a game you will find a single pixel in the top left of the screen that indicates whether a mine is present on the square your mouse cursor is over. A black pixel represents a Mined Space, while a white pixel shows that the space is Free.
Code Title: Reveal mine:
In the Windows 98 and earlier versions, type xyzzy, press [Keypad Enter] and [Left Shift] as soon as the game loads. Moving your pointer over a square with a hidden mine will result in a very small black pixel appearing in the top right corner of the screen. Alternately, type [Shift][Shift]xyzzy[Shift][Shift] after moving the pointer over the game area. Note: This code does not work in the Windows Millennium Edition version of the game.