Skip to content

๐Ÿ A fun, retro-style Snake Game built with Python and Turtle graphics. Eat, grow, and dodge your own tail in this nostalgic classic with a modern touch!Classic Snake Game ๐ŸŽฎ | Built with Python Turtle ๐Ÿข | Eat. Grow. Repeat. ๐Ÿ”

Notifications You must be signed in to change notification settings

manoj-sys-core/snake-game-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Classic Snake Game

A fun and retro Snake Game built using Python ๐Ÿ and the Turtle graphics library.
Eat the red food, grow longer, and avoid the walls (and yourself) โ€” how long can you last? ๐Ÿ‘€


๐ŸŽฎ Gameplay Preview

Use the arrow keys to move the snake.
Eat the red dots ๐ŸŽ to grow longer and increase your score.
Avoid the walls and your own tail. Game resets when you crash!


๐Ÿš€ Features

โœ… Smooth movement using Turtle module
๐ŸŽ Randomized food positioning
๐ŸŽฏ Collision detection
๐Ÿ“ˆ Live score tracking with high score saving
๐Ÿ” Auto-reset on collision
๐Ÿง  Clean, modular code (OOP based)


๐Ÿงฑ Project Structure

โ”œโ”€โ”€ main.py             # Game loop and screen setup
โ”œโ”€โ”€ snake.py            # Snake class with movement logic
โ”œโ”€โ”€ food.py             # Food object logic
โ”œโ”€โ”€ scoreboard.py       # Score tracking and high score saving
โ”œโ”€โ”€ high_score.txt      # File storing persistent high score

---

## ๐Ÿ“ฆ Requirements

- Python 3.x
- Turtle (usually comes pre-installed with Python)

---

## ๐Ÿ› ๏ธ How to Run

1. Clone the repository:

```bash
git clone https://github.com/your-username/snake-game.git
cd snake-game

About

๐Ÿ A fun, retro-style Snake Game built with Python and Turtle graphics. Eat, grow, and dodge your own tail in this nostalgic classic with a modern touch!Classic Snake Game ๐ŸŽฎ | Built with Python Turtle ๐Ÿข | Eat. Grow. Repeat. ๐Ÿ”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages