Skip to content

CodesOfRishi/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

🐍 Classic Snake Game in Python (Turtle Graphics)

A fun, fully functional Snake Game built using Python's built-in turtle module. Control the snake with arrow keys, eat food to grow longer, and try to beat your high score — without hitting the walls or yourself!

✨ Features

  • Smooth snake movement with proper segment following.
  • Arrow key controls (Up, Down, Left, Right).
  • Prevents 180° instant reversals (realistic movement).
  • Score tracking displayed on screen.
  • Red boundary walls with visual border.
  • Game over on wall collision or self-collision.

🎮 How to Play

  • Use the Arrow Keys to control the snake
  • Eat the red food to grow and increase your score
  • Don't run into the walls or yourself!
  • The game ends when you collide — see how high you can score!

🚀 Running the Game

Prerequisites

  • Python 3.12 or higher
  • No external packages required! Uses only the standard library (turtle, random, time)

How to Run

git clone https://github.com/yourusername/snake-game-turtle.git
cd snake-game-turtle
python snake_game.py

About

The Snake game using Python Turtle graphics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages