Python3 based implementation using nylon graphics of an automated-snake game
Screenshot Gallery...
The system stores a list of cubes (1 for each piece of food eaten). The first cube in the list is considered the head of the snake. The head of the snake finds the fastest root to the next food pellet, and beings its pursuit. As it travels forward, it marks the directional array with the direction it traveled on it. Each body part then moves forward, in the same direction as marked on their underlying-array location.
Included in this repository is the graphics.py file, which in its entirety belongs to the developers of nylon graphics. Unfortunatly, nylon graphics was refusing to install through pip during development, resulting in this work around.