Minesweeper bot with simple AI. Built with python and pyautogui.
The python script grabs a screenshot of the board and reads in the pixel value of each cell. The scanned board is then printed in color in the terminal. Pyautogui then flags and clicks on the cells using two simple rules, shown in the code. This repeats until no trivial moves can be made, i.e., enumeration of the unclicked cells with mine configurations must be done in order to calculate the next move.
Sources:
https://luckytoilet.wordpress.com/201...
https://pyautogui.readthedocs.io/en/l...
Code:
https://github.com/danielchang2002/Mi...
On this page of the site you can watch the video online Python Minesweeper AI with a duration of hours minute second in good quality, which was uploaded by the user Daniel Chang 24 February 2021, share the link with friends and acquaintances, this video has already been watched 5,838 times on youtube and it was liked by 81 viewers. Enjoy your viewing!