Skip to content

ErkanSoftwareDeveloper/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Snake Game

A classic Snake game desktop application with background music, built with Python and Pygame. The game features smooth controls, score tracking, and a fun, interactive interface.


✨ Features

  • Classic Snake gameplay
  • Score tracking
  • Play again / Exit options
  • Background music while playing
  • Colorful and clean graphics
  • Responsive controls using arrow keys

πŸ› οΈ Technologies Used

  • Python 3
  • Pygame – game and multimedia library
  • Random – generate random food positions

πŸ“¦ Installation

Clone the repository:

git clone https://github.com/ErkanSoftwareDeveloper/snake-game.git
cd snake-game

Install dependencies:

pip install -r requirements.txt

Make sure snake.mp3 is in the same directory as snake.py for background music.


▢️ Usage

Run the game:

python snake.py

Controls:

  • Arrow keys β€” move the snake
  • Avoid walls and your own tail
  • Eat red blocks to gain points
  • When game ends, choose Play Again or Exit

πŸ“ Project Structure

snake-game/
β”œβ”€ snake.py            # Main game file
β”œβ”€ snake.mp3           # Background music
β”œβ”€ .gitignore          # Git ignored files
β”œβ”€ README.md           # Project documentation
└─ requirements.txt    # Project dependencies

πŸ“Έ Video

2026-01-1115-49-36-ezgif com-video-to-gif-converter


πŸš€ Possible Improvements

  • Add levels or increasing speed
  • High score tracking
  • Sound effects for eating food or collision
  • Mobile or touchscreen support
  • Packaging as executable (.exe)

πŸ“„ License

This project is intended for educational and personal use.

About

Python-based application game snake

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages