Skip to content

AbhiramiTS/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game 🐍

Welcome to my Snake Game project! This classic Snake Game is implemented using Python's Turtle graphics library, providing a nostalgic gaming experience. The snake grows longer as it consumes the blue food items, and the goal is to achieve the highest score possible without colliding with the walls or the snake's own tail.

Table of Contents

Features

🐍 Snake Movements: Control the snake's direction using arrow keys (Up, Down, Left, Right).

🍎 Food: Blue circular food items appear randomly on the screen. The snake grows longer upon consumption.

📈 Scoreboard: Keep track of your score at the top of the screen. The score increments each time the snake eats the food.

🚫 Collision Detection: The game ends if the snake collides with the walls or its own tail.

How to Play

  1. Clone the repository to your local machine.
  2. Run the main.py file using a Python interpreter.
  3. Control the snake's direction using the arrow keys.
  4. Eat the blue food items to grow longer and increase your score.
  5. Avoid colliding with the walls or the snake's tail.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/snake-game.git
  2. Navigate to the project directory:

    cd snake-game
  3. Run the game:

    python main.py

Controls

  • Up Arrow: Move the snake up
  • Down Arrow: Move the snake down
  • Left Arrow: Move the snake left
  • Right Arrow: Move the snake right

Dependencies

  • Python 3.x
  • Turtle Graphics Library

Screenshot 📸

Snake Game Screenshot

Enjoy the game! 🎮

About

100 Days of Code [DAY 21] - Snake Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages