Minesweeper 2 Documentation

© Daniel D'Agostino 2006

Contents

How to play

The goal is to clear all the squares that don't have a mine.

Keyboard controls

Customising your game

Running your game from the command line allows you to customise your game as you want, allowing you to set the width and height of the grid, the number of mines there are, choose a predefined mode, or even cheat.

You can run Minesweeper normally by simply typing minesweeper and pressing Enter. The default mode is the Expert mode.

However, you can use additional parameters that allow you to customise your game. The following parameters are possible:

Each parameter must be followed by an equals sign (=), which in turn must be followed by an appropriate value. The values of width, height and mines must be a number. The value of mode must be either beginner, intermediate or expert. If you want to turn on the cheat, its value must be set to true.

You can use any combination of these parameters, and there is no particular order in which you must write them. Keep in mind that while setting the mode will set the width, height and mines, setting either width, height or mines separately will override what is set by the mode.

Here are some examples:

C:\Minesweeper>minesweeper

C:\Minesweeper>minesweeper width=50 height=20

C:\Minesweeper>minesweeper mode=beginner cheat=true

If you want to keep some settings, you can create a batch file and store them there, and this will allow you to run the game with those settings whenever you want, by just double-clicking on the batch file.

To create a batch file, create a text file with the extension .bat. Then just type whatever you would type in the command line. For example, you can create a file called intermediate.bat with the following content:

minesweeper mode=intermediate

Limitations

If you were free to set any values you wanted for the game, you would end up with unexpected crashes. The following limitations have been set:

These limitations have only been set to avoid crashes that may be flaws within the program. You can raise the field area to the sky and make it too big to fit on your screen, and you can abuse it like this as much as you want, but you do so at your own risk.

Changes from Microsoft Minesweeper

Changes from my Minesweeper 1