A classic Snake game implemented in Python using the Pygame library.
The Snake Game is a classic arcade game where the player controls a snake that moves around the screen and tries to eat food items to grow longer. The game ends if the snake collides with itself or the screen borders. The goal is to achieve the highest score by eating as much food as possible.
- Simple and intuitive gameplay.
- Increasing difficulty as the snake grows longer.
- Score tracking.
- Game over screen with the option to restart.
-
Clone the repository:
git clone https://github.com/Shantanu700/Snake-game
-
Install the required dependencies
pip install Pygame
-
Go to your cloned repository directory
cd /path/to/your/repository
- Run the command.
python snake.py
Make sure you have Python and Pygame installed on your system.
- Use arrow keys (Up, Down, Left, Right) to control the snake's direction.
- Press Esc to exit the game.


