Skip to content

henrietta-k/Minesweeper-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages