Python Minesweeper AI

Publicado el: 24 febrero 2021
en el canal de: Daniel Chang
5,838
81

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...


En esta página del sitio puede ver el video en línea Python Minesweeper AI de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Chang 24 febrero 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,838 veces y le gustó 81 a los espectadores. Disfruta viendo!