A simple snake game with p5.js and a solver with python. (Actually sketch.js solves it.)
In sketch.js, it both operates the snake game and the solver. It uses simple BFS.
Py script first takes screenshot and then recovers position of food. Then a bread-first search is done for finding path. After all a simple while loop for pressing the buttons is processed.
