after many hours of struggling with opencv and windows i had to switch to python 2.7
MineSweeper from Microsoft. It can be downloaded from the windows Store for Free. Link is comming...
This is the main code for my Mine Sweeper bot, that playing Mine Sweeper from Microsoft on its own. In the end the bot should be able to recognize the grid and the diiferent Values of the squares without giving him the exact images.
Actually the bot is far away from working. I try to code everyday some line, but i don´t know when this bot will be running.
The bot could be sliced in the following main tasks.
- Start the Game
- Read the Game and recognize whats going on
- Loop, because the bot should know what happened after every click
- Read different regions to evaluate, where mines are for sure to click NOT on this squares.
- Game Logic:
- apply the game rules
- score the squares to find the bombs
- Log every Game to find out how good the bot is
Author: Christian Kraft Email : [email protected] https://github.com/robinarthur/minesweeperbot
- opencv
- cv.blob - https://github.com/spmallick/learnopencv/tree/master/BlobDetector
- to be continued
without the Help of this Tutorial https://code.tutsplus.com/tutorials/how-to-build-a-python-bot-that-can-play-web-games--active-11117 , i was not able to think about doing something like that.
The other guys how helped me out were not forget, the names/ links were be copied when i have the time for.
i was also inspired by sentdex and his awesome "Python plays GTaV" https://www.youtube.com/playlist?list=PLQVvvaa0QuDeETZEOy4VdocT7TOjfSA8a