A classic Snake game desktop application with background music, built with Python and Pygame. The game features smooth controls, score tracking, and a fun, interactive interface.
- Classic Snake gameplay
- Score tracking
- Play again / Exit options
- Background music while playing
- Colorful and clean graphics
- Responsive controls using arrow keys
- Python 3
- Pygame β game and multimedia library
- Random β generate random food positions
Clone the repository:
git clone https://github.com/ErkanSoftwareDeveloper/snake-game.git
cd snake-gameInstall dependencies:
pip install -r requirements.txtMake sure snake.mp3 is in the same directory as snake.py for background music.
Run the game:
python snake.pyControls:
- Arrow keys β move the snake
- Avoid walls and your own tail
- Eat red blocks to gain points
- When game ends, choose Play Again or Exit
snake-game/
ββ snake.py # Main game file
ββ snake.mp3 # Background music
ββ .gitignore # Git ignored files
ββ README.md # Project documentation
ββ requirements.txt # Project dependencies
- Add levels or increasing speed
- High score tracking
- Sound effects for eating food or collision
- Mobile or touchscreen support
- Packaging as executable (.exe)
This project is intended for educational and personal use.
