Skip to content

DevAime/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game in Python

A simple implementation of the classic Snake Game using Python and the Turtle graphics library.
Built completely from scratch with Object-Oriented Programming principles.

image image

Game Features

  • Snake movement controlled with arrow keys.
  • Food that spawns randomly on the screen.
  • Scoreboard to track player progress.
  • Snake grows longer each time it eats food.
  • Game ends when the snake hits the wall or collides with itself.

Project Structure

  • snake.py → Snake class for movement and growth.
  • food.py → Food class for spawning food.
  • scoreboard.py → Scoreboard class for tracking the score.
  • main.py → Runs the game loop.

About

Python Turtle-based Snake game with scoring, growing snake, and basic controls.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages