To watch the video associated with this code, go here: https://youtu.be/je0DdS0oIZk.
The snakeql.py file contains the code for the Q Learning agent. snake_no_visual is used to train the q learning model, while the visual file allows you to run your model and watch the snake chase apples using PyGame.