The nimbus series of broomsticks is the fastest series of broomsticks currently in production. They sweep real fast. Apparently, they even sweep mines. My PyCon 2018 India Lightning talk about the project
Nimbus2018 is a minesweeper bot written to get on the highscore list on minesweeperonline.
- Open minesweeperonline on Google Chrome. Change the zoom to 175%
- Open a terminal window, and ensure that it is not blocking any part of the minesweeper board.
cd
intopath/to/nimbus2018
- Run the command
python3 solve.py
- Watch in awe. Cross your fingers and hope you got a solvable board. [In case you are facing an error, you might have to replace the images directory yourself.]
- Think up a creative name for your high score.
- Exercise your bragging rights in a resposible manner.
Nimbus2018 uses pyautogui
for reading the screen, and controlling the mouse.
PIL is used for recognising the values on screen.
Nimbus can be used on partially solved boards, in case you are stuck.
Specifics of the development environment. Certain things may need changing when using any other environment.
- OS: Kubuntu 17.10
- Python version: 3.6.3
- Screen dimensions: 1366 x 768
- minesweeperonline zoom level on chrome: 175%