A simple Python implementation of the classic Snake game. The player controls a snake that moves around the screen, eating food to grow longer while avoiding collisions with the walls and itself.
- Python 3.6 or higher
- Pygame library
-
Clone the repository
git clone https://github.com/dtiourine/snake-game.git cd snake-game -
Install dependencies
pip install pygame -
Run the game
python snake.py
- Use arrow or WASD keys to control the snake
- Eat the food to grow longer and increase your score
- Avoid hitting the walls or yourself
- Try to achieve the highest score possible!
