Skip to content
Snake for terminal, in Python.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Snake for terminal, in Python.
Score points (displayed in the upper left) by collecting exclamation marks ('!'). If the snake touches itself or, in BOUND mode, the walls, the game is over.
Point values, snake speed, and framerate can be adjusted in the source file.


  • Arrow keys - start the game and control the snake's direction
  • W - starting screen only, toggle wrap mode (after hitting a wall, the snake will emerge from the other side of the screen instead of dying)
  • P - pause the game
  • Q - end the game, and on the game over screen - quit the game
  • R - game over screen only, restart to the starting screen
You can’t perform that action at this time.