A classic Snake game built with Python and Pygame.
- Classic snake gameplay
- Score tracking with high score persistence
- Special golden star bonus food (appears randomly, gives 50 points)
- Grid-based movement
- Start screen and game over screen
- Smooth controls with arrow keys
- Python 3.7+
- Pygame 2.5+
- Open a terminal/command prompt in this folder
- Install dependencies:
pip install -r requirements.txt
-
Run the game:
python snake.py
-
Controls:
Arrow Keys- Move snake (Up, Down, Left, Right)SPACE- Start game / Restart after game overESC- Quit game
-
Rules:
- Eat red apples to grow and earn 10 points
- Catch golden stars (appear randomly) for 50 bonus points
- Don't hit yourself!
- Game wraps around screen edges
snake_game/
├── snake.py # Main game code
├── requirements.txt # Python dependencies
└── README.md # This file