Skip to content

dhrumilshukla258/MinesweeperSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper Solver

Solves a m*n Minesweeper. The Game that this AI solves. Link: http://minesweeperonline.com/

Executing the Program

To run the program written in C++. Go to directory /C++ Code/x64/Minesweeper.exe.

To run the program written in Python you would need to install few libraries.

pip install numpy
pip install PyAutoGUI
pip install opencv-python

Once that is done you can run the code: python solver.py

Program Results.

I have uploaded the video: https://youtu.be/Jzl_L8tMqQg

How the code works

I have used OpenCV for understanding the Screenshot we take initially and then after every click.
Along with that Proof by Contradiction and Rules of Minesweeper are merged with First order Logic to analyze the Board.

About

Beat MinesweeperOnline.com using AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages