https://github.com/leojimenezg/snake_game
The classic Snake Game using Turtle library and OOP
https://github.com/leojimenezg/snake_game
oop python turtle video-game
Last synced: 10 months ago
JSON representation
The classic Snake Game using Turtle library and OOP
- Host: GitHub
- URL: https://github.com/leojimenezg/snake_game
- Owner: LeoJimenezG
- Created: 2024-04-05T05:18:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-28T21:43:29.000Z (over 1 year ago)
- Last Synced: 2025-01-13T08:46:09.756Z (over 1 year ago)
- Topics: oop, python, turtle, video-game
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game 🐍
A recreation of the classic Snake Game using the Turtle Library and Object-Oriented Programming (OOP) in Python.
---
## ⚠️ Important
- **Do not delete** the file named `data.txt`. This file is essential for the program to run correctly, as it stores the highest score.
---
## 📘 How Does It Work?
### 1. Start the Game:
- After executing, the program will ask if you want to play.
- You will have to enter `Y` for **Yes** or `N` for **No`.
- The input is not case-sensitive, but it must be a single valid character.
### 2. Control the Snake:
- **Move Left**: Press the **Left Arrow Key**.
- **Move Right**: Press the **Right Arrow Key**.
- **Move Up**: Press the **Up Arrow Key**.
- **Move Down**: Press the **Down Arrow Key**.
### 3. Save Your High Score:
- The program automatically saves your highest score in a file named `data.txt`.
---
## 💡 Notes
- The file error was added intentionally—oops! 🤷♂️