A simple Snake game built with Python and Pygame. Move the snake, eat the food, and try to get the highest score possible. The game features sound effects and a clean, minimal interface.
- Classic Snake gameplay
- Sound effects for eating food and game over
- Score display
- Restart or quit after game over
- Python 3.7 or higher
- Pygame library
-
Clone the repository:
git clone https://github.com/yourusername/snake-pygame.git cd snake-pygame -
Install dependencies:
pip install pygame -
Make sure you have the
eat.wavandgameover.wavsound files in the project directory.
You can use your own sounds or download free .wav files from freesound.org.
Run the game with:
python3 snake.py
- Arrow keys: Move the snake
- SPACE: Restart after game over
- ESC: Quit the game