Python Minesweeper AI

Опубликовано: 24 February 2021
на канале: 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...


На этой странице сайта вы можете посмотреть видео онлайн Python Minesweeper AI длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Chang 24 February 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,838 раз и оно понравилось 81 зрителям. Приятного просмотра!