Skip to content

BhavikJaviya24/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greedy Snake Game 🐍

This repository features a classic Snake game built with Python's Turtle Graphics library. Test your reflexes and see how long you can grow your snake without crashing!


Table of Contents


Features

  • Interactive snake game with smooth controls.
  • Randomly generated food to grow the snake.
  • Scoreboard to keep track of your progress.
  • Game over screen when the snake collides with the walls or itself.

Gameplay

  1. Use the arrow keys to control the snake:
    • Up: Move up.
    • Down: Move down.
    • Left: Move left.
    • Right: Move right.
  2. Eat the food to grow the snake and increase your score.
  3. Avoid colliding with the walls or yourself to keep the game going!

Installation

  1. Clone the repository:
    git clone https://github.com/BhavikJaviya24/snake-game.git
    cd snake-game
  2. Install Python 3 if not already installed.
  3. Install the required libraries (if any) using pip:

Usage

  1. Run the game:
    python main.py
  2. Play the game in the window that opens.
  3. Exit the game by clicking anywhere on the screen when it's over.

Technologies Used

  • Python 3.x: Core programming language.
  • Turtle Graphics: For visualizing the game interface and animations.

Future Improvements

  • Add levels of increasing difficulty.
  • Introduce special food with unique effects (e.g., speed boosts).
  • Save high scores locally or in a database.
  • Implement a multiplayer mode.

Contributing

Contributions are welcome! Here’s how you can help:

  • Report bugs or suggest new features via issues.
  • Fork the repository and submit a pull request with improvements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages