A lightweight Snake game built with Python and pygame.
Simple rules, clean code, and easy to modify.
- Classic Snake gameplay
- Written in Python
- Uses
pygamefor graphics and input - Designed to be readable and straightforward
- Control the snake using the arrow keys
- Eat food to grow longer
- The game ends if you hit a wall or yourself
| Key | Action |
|---|---|
| β | Move up |
| β | Move down |
| β | Move left |
| β | Move right |
- Python 3.x
pygame
Install pygame:
pip install pygame