PyAISnake - is a free software python math-sandbox simulator built to teach AI models on how to solve problems related to spatial intelligence, through the classic video game "snake".
https://en.wikipedia.org/wiki/Snake_(video_game)
chmod a+x snake.py
./snake.py
or
python3 snake.py
PyAISnake is released under the GPLv3. You can find the full license text in the LICENSE file.