A classic, interactive Snake Game built with Python and the pygame library. This project demonstrates basic game logic, collision detection, and GUI development.
Gameplay Demo: The snake growing as it eats food while avoiding the walls.
- Real-time Movement: Smooth controls using the arrow keys.
- Score Tracking: Keeps track of your current score as you eat.
- Game Over Logic: Detects collisions with walls or the snake's own body.
- Dynamic Growth: The snake increases in length every time it consumes food.
- pygame: For the graphical user interface.
- Random: For generating food at random coordinates.
To run this game on your local machine, follow these steps:
-
Clone the repository: https://github.com/anupam-sec/Snake_Game_using_Python/
-
Run the script: Software Development Project ( Snake Game ).py