A simple Minesweeper AI I made cause I want to be lazy
Table of Contents
I got lazy playing minesweeper. This project is planned to be expanded..
This is a python-built AI that plays Minesweeper currently only on this website. It automatically finds the playing field when size: 30 and uses a simple algorithm to try and solve the board. It will start a new board everytime the game is over.
optional:
To use the AI, download the project and the required libraries. Open this website and set size to 30. Afterwards, display the board on your screen and run the application in the background. The AI will find the board and start playing the game.
To stop the program, drag your mouse to the top-left corner of your screen. This will kill the instance, you may have to try some times since your mouse will likley be flicking across the screen.
TODO: Display a general win-rate of the AI
- Usable on multiple board sizes.
- Mac version
- Try to fix for multiple screen sizes (can scale the board in pixels).
- mine count 6 and 7.
- Better error handling.
- Expanded algorithm to check for other conditions, such as tile-patterns.
- Better random-click algorithm, can calculate the different chances for a mine and select the best option.
- Statistics, win-loose-rate