Mines 0.2 Alpha
README
Mines will attempt to solve a 10x10 minesweeper puzzle. The purpose of this program is to address the well-known problem of determining whether a given minesweeper puzzle is solvable.
You are required to press any key before each step of the algorithm, so you can watch as the program solves the puzzle.
The mine field is read from './minefield', a text file containing a 10x10 grid of numbers. Each number represents the amount of bombs adjacent to it. Wherever there is a bomb, this is indicated by the letter 'X'. Mines will be unable to solve the puzzle unless this information is correct. The dimensions of the field cannot be changed for the moment.
- Example
0000000000
0011101221
001X101XX1
0011101221
0000000000
2210001110
XX10002X20
2210125X30
00001XXX20
0000123210
More sample minefields are provided within this package. Just rename them to 'minefield' to have the program solve them.
- Note
The current version of Mines cannot solve ALL minefields. The ones included have already been solved, but if you wish to provide new ones, be aware that they may be unsolvable by this algorithm. In addition, there are several bugs in the program, since it's in an alpha stage, so you may come across a minefield that will confuse Mines, yielding undesirable results. If you happen to see a 9 in the mine field on screen, then something went wrong.
