The classic Snake game, in your terminal.
- Python 3.9 or higher
- Packages listed in
requirements.txt
Optional executable file for Windows users. Python and the required packages are included in the executable.
- 6 MB of free space for the executable
- 7 MB of free space for temporary files
Use W, A, S, D to control the direction of the snake. Press ESC to exit the game, and SPACE to pause the game. Move the snake over the red apples to eat them and grow longer, and avoid hitting the snake's body.
The game can be configured by downloading and editing the config.json
file.
The file must be in the same directory as the executable or the Python file.
Option | Description |
---|---|
snake_speed |
The speed of the snake. |
loop |
Whether the snake can go through walls. |
colors |
The color of each of the game elements. |