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...
Auf dieser Seite können Sie das Online-Video Python Minesweeper AI mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Chang 24 Februar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,838 Mal angesehen und es wurde von 81 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!