Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.13 KB

File metadata and controls

29 lines (22 loc) · 1.13 KB

🐍 Snake Game using Python

A classic, interactive Snake Game built with Python and the pygame library. This project demonstrates basic game logic, collision detection, and GUI development.

Snake Game Demo
Gameplay Demo: The snake growing as it eats food while avoiding the walls.

🎮 Features

  • 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.

🛠️ Built With

Python

  • pygame: For the graphical user interface.
  • Random: For generating food at random coordinates.

🚀 How to Run

To run this game on your local machine, follow these steps:

  1. Clone the repository: https://github.com/anupam-sec/Snake_Game_using_Python/

  2. Run the script: Software Development Project ( Snake Game ).py