Python Minesweeper AI

Pubblicato il: 24 febbraio 2021
sul canale di: 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...


In questa pagina del sito puoi guardare il video online Python Minesweeper AI della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daniel Chang 24 febbraio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,838 volte e gli è piaciuto 81 spettatori. Buona visione!