A terminal-based recreation of the classic Nokia mobile game Snake.
Made with Python 🐍.
Snake was a preloaded game on certain Nokia mobile phone models released in 1998. The objective of the game was to guide a moving snake around the screen and consume randomly-appearing fruit, which caused the snake to grow in length. Colliding with the snake's body or the sides of the screen resulted in a Game Over ☠️.
This was a small project inspired by a challenge set at CodeHub Bristol's Python Dojo event. The Python Dojo is a fortnightly meetup where coders gather, split into small teams and try to solve a challenge in under two hours. The event is very informal and the emphasis is on learning, rather than necessarily completing the task.
That evening, the challenge produced a lot of learning, but the result was far from functional. However, the objective was compelling enough to take home and turn into a personal learning project for a week or two.
Screenshots showing a selection of colour schemes, unlocked every 100 points.
This project uses Poetry to manage dependencies.
To run the project, use the following command:
makeIf Make is not available on your system, you can also run:
poetry install
poetry run python -m sneckWindows compatibility is not confirmed yet - see Known Issues.
The game is played with Vim navigation keys, so if you are a Vim user or would like the opportunity to practice, this game will also serve as a handy training tool.
Basic movement keys are:
H- LeftJ- DownK- UpL- Right
The game can be quit at any point by pressing Q.
- Option to switch controls to regular cursor keys or WSAD
- Sound effects
The curses module that this project depends on is part of the Python standard
library, but is not available on Windows. There are workarounds for this -
third-party projects exist to make curses available, but as I don't have
regular access to a Windows computer, this issue may remain on the backlog for a
while.


