Skip to content

About

a classics game with build with python and pygame. Features smooth movement, score tracking, food spawning, and a restart option after Gaming Over. perfect for beginners learning game development using pygame.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation


📘 README.md

🐍 Pygame Snake Game

A classic Snake Game built with Python and Pygame.  
Simple, fast, and fun — perfect for learning game development basics in Python!

---

 🎮 Features
- Smooth snake movement  
- Food spawning and score system  
- Collision detection (walls and self)  
- Game over + restart options  
- Simple, easy-to-read Python code  

---

 🧰 Requirements
Make sure you have Python 3 and Pygame installed.

```bash
pip install pygame


---

▶️ How to Run

1. Clone this repository:

git clone https://github.com/<your-username>/pygame-snake-game.git
cd pygame-snake-game


2. Run the game:

python snake_game.py




---

🎯 How to Play

Use arrow keys ⬆️⬇️⬅️➡️ to move the snake

Eat the red food to grow and increase your score

Avoid hitting the walls or yourself

Press Space to restart after Game Over

About

a classics game with build with python and pygame. Features smooth movement, score tracking, food spawning, and a restart option after Gaming Over. perfect for beginners learning game development using pygame.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors