Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🐍 Python Snake Game

A classic Snake Game developed with Python and Pygame. The game features smooth movement, random food spawning, score tracking, and simple keyboard controls, making it a great beginner-friendly game development project.


🎮 Features

  • Classic Snake gameplay
  • Random food generation
  • Real-time score tracking
  • Smooth movement controls
  • Game Over detection
  • Beginner-friendly code
  • Built using Pygame

🛠️ Technologies Used

  • Python 3
  • Pygame

Python Modules

  • pygame
  • random
  • sys

Note: random and sys are built-in Python modules. Only pygame needs to be installed separately.


📁 Project Structure

python-snake-game/
│── python.py
│── README.md

⚙️ Installation

1. Clone the repository

git clone https://github.com/iamdeveloperrayhan/python-snake-game.git

2. Navigate to the project folder

cd python-snake-game

3. Install Pygame

pip install pygame

Or:

pip3 install pygame

▶️ Run the Game

python python.py

Or:

python3 python.py

🎯 Controls

Key Action
Move Up
Move Down
Move Left
Move Right

👤 Author

Developer Rayhan

GitHub: https://github.com/iamdeveloperrayhan


📄 License

This project is created for learning and educational purposes.

About

A classic Snake Game built with Python and Pygame, featuring smooth gameplay, random food generation, score tracking, and keyboard controls.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages