A simple player as well as auto-solver for Minesweeper, a classic puzzle video game.
- .NET Runtime 7.0 or greater
- Download the latest build zip archive from the latest release.
- Extract to a folder and run
Minesolver.exe
.
- Enter the board size (format:
<row> <col>
) and the number of mines. A game board will be displayed. - Enter a pair of numbers (format:
<row> <col>
) to click a square on the board. - Enter a pair of numbers followed by 'F' (format:
<row> <col> F
) to flag a covered square. - Clicking on an already revealed square performs a chord, which automatically reveals adjacent covered squares if the number of adjacent flags match the number displayed on the square. For example:
Clicking on the square (2, 2), which is numbered 2, will reveal the squares (2, 3), (3, 1), (3, 2), and (3, 3). Note that if one of the flagged square is a safe square, this may result in a mined square being revealed by chording. - The game ends when all the remaining covered squares are mined, or a mined square is revealed.
- Enter the board size (format:
<row> <col>
) and the number of mines. - The auto-solver will also prompt for either the interval (in seconds) between clicks for single solve mode, or the number of attempts for mass solve mode.
- In single solve mode, each click performed by the auto-solver and its result will be displayed in a game board on the terminal.
- In mass solve mode, the result of each attempt, and the ratio of success to the total number of attempts, will be displayed on the terminal.
- Each auto-solver employs different strategies to solve the board, and thus may produce different results.