Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game built with Python and Pygame.

Features

  • Classic snake gameplay
  • Score tracking with high score persistence
  • Special golden star bonus food (appears randomly, gives 50 points)
  • Grid-based movement
  • Start screen and game over screen
  • Smooth controls with arrow keys

Requirements

  • Python 3.7+
  • Pygame 2.5+

Installation

  1. Open a terminal/command prompt in this folder
  2. Install dependencies:
    pip install -r requirements.txt

How to Play

  1. Run the game:

    python snake.py
  2. Controls:

    • Arrow Keys - Move snake (Up, Down, Left, Right)
    • SPACE - Start game / Restart after game over
    • ESC - Quit game
  3. Rules:

    • Eat red apples to grow and earn 10 points
    • Catch golden stars (appear randomly) for 50 bonus points
    • Don't hit yourself!
    • Game wraps around screen edges

File Structure

snake_game/
├── snake.py          # Main game code
├── requirements.txt  # Python dependencies
└── README.md         # This file

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages