Skip to content

Classic Snake game implemented in Python using object-oriented programming and real-time user input handling.

Notifications You must be signed in to change notification settings

mrinnocent0316/Snake-Game-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game (Python)

Description

A classic Snake game implemented in Python using Turtle Graphics and object-oriented programming. The game supports real-time user input, collision detection, scoring, and game-over logic.

Features

  • Snake movement using keyboard controls
  • Food generation at random positions
  • Collision detection with walls and snake body
  • Score tracking and game-over conditions
  • Modular OOP-based design

Technologies Used

  • Python
  • Turtle Graphics
  • Object-Oriented Programming

Files

  • main.py – Entry point of the game
  • snake.py – Snake movement and body logic
  • food.py – Food generation logic
  • score.py – Scoreboard and display logic

How to Run

python main.py

About

Classic Snake game implemented in Python using object-oriented programming and real-time user input handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages