Hi I would like to create a bot for for snake game made to canvas.
Did anyone tried it and would like to share some insights?
I have rough idea in mind
Get the image data from the browser on the interval of maybe .5s
Transform the data to array and try to find the food
Position the image on the grid and try to find the shortest path to the food
Issues I have tips that game is bicolour, and every level has some obstacles that I need to take into account. How to make extraction from browser.
I would appreciate some insights how to do that, I’m not new to programming but new to python
submitted by /u/boreusz
[link] [comments]
r/learnpython Hi I would like to create a bot for for snake game made to canvas. Did anyone tried it and would like to share some insights? I have rough idea in mind Get the image data from the browser on the interval of maybe .5s Transform the data to array and try to find the food Position the image on the grid and try to find the shortest path to the food Issues I have tips that game is bicolour, and every level has some obstacles that I need to take into account. How to make extraction from browser. I would appreciate some insights how to do that, I’m not new to programming but new to python submitted by /u/boreusz [link] [comments]
Hi I would like to create a bot for for snake game made to canvas.
Did anyone tried it and would like to share some insights?
I have rough idea in mind
Get the image data from the browser on the interval of maybe .5s
Transform the data to array and try to find the food
Position the image on the grid and try to find the shortest path to the food
Issues I have tips that game is bicolour, and every level has some obstacles that I need to take into account. How to make extraction from browser.
I would appreciate some insights how to do that, I’m not new to programming but new to python
submitted by /u/boreusz
[link] [comments]