Skip to content

About

Classic Snake Game built with Python and Turtle graphics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Snake Game

A simple Snake Game built using Python and Turtle graphics.# Snake Game

A classic Snake Game built using Python's Turtle graphics module. This project was created as part of my Python learning journey.

Features

  • Control the snake using the arrow keys.
  • Snake grows after eating food.
  • Random food generation.
  • Collision detection with walls and the snake's body.
  • Score and high score tracking.
  • High score is stored using a text file.

Technologies Used

  • Python
  • Turtle Graphics
  • Object-Oriented Programming (OOP)
  • File Handling

Project Structure

Snake-Game/
│
├── main.py
├── snake.py
├── SnakeFood.py
├── scoreboard.py
├── snake_data.txt
└── preview.gif

How to Run

  1. Clone the repository.
git clone https://github.com/YOUR_USERNAME/snake-game.git
  1. Open the project folder.

  2. Run the following command:

python main.py

What I Learned

  • Creating games using Python.
  • Organizing code into multiple classes.
  • Working with the Turtle module.
  • Using file handling to save data.
  • Applying object-oriented programming concepts.

About

Classic Snake Game built with Python and Turtle graphics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages