See it in action here: https://steenstn.github.io/qsnake/
A snake that uses Q-learning to find the apples. When the head is blue it is choosing a random direction, when the head is green it chooses the "best" direction that is has learned
- Arrow up/down: Change simulation speed
- R: Reset the counters
- Click the button to load a pretrained network