org.shinkirou.minesweeper is a minesweeper solver written in Java. It also include an interactive command line interface that lets you to experiment with it.
Installation and Download
The Github repository of Minesweeper is http://github.com/SHiNKiROU/Minesweeper. Click "Download Source" to download the source code. Then extract the dist/Minesweeper.jar archive to your hard drive.
Launching Minesweeper
To launch Minesweeper, open your command line (on Mac and Linux, the Terminal, or on Windows, the Command Prompt, consult your operating system's manual for more details), cd (change directory) to the Minesweeper.jar, and launch:
$ java -jar Minesweeper.jar
How to use the Command Line Interface
Command Line Arguments
The command line arguments specifies the board size, for the first argument is the board width, then the second is the board height, and the third is the number of mines. They are optional.
Minesweeper.jar [ width height mines ] # there are default values for them
Commands
After you launched Minesweeper Solver, then you can type a command to interact with the board.
X Y: Opens a square.m X Y: Flags a square.c: The cheat command, lets the computer fills some squares for you.r: Opens a random square.x: Exits.