Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 636 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 636 Bytes

Minesweeper-Solver

Minesweeper is a game in which clicking a block reveals how many mines there are surrounding it. A player loses once they have clicked a block containing a mine. The solver computes the probability that each block contains a mine using Linear Programming, thereby allowing the game to be "solved" and for a player to win.

Installation

To install the required packages:

python -m pip install -r requirements.txt

Testing

Games can be tested using this command where the number of rows (-r), columns (-c), and mines (-m) can be customized.

python game.py -b 40 -v -r 24 -c 30 -m 150