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.
🐍 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.
- Clone the repository to your local machine.
- Run the
main.py
file using a Python interpreter. - Control the snake's direction using the arrow keys.
- Eat the blue food items to grow longer and increase your score.
- Avoid colliding with the walls or the snake's tail.
-
Clone the repository:
git clone https://github.com/your-username/snake-game.git
-
Navigate to the project directory:
cd snake-game
-
Run the game:
python main.py
- Up Arrow: Move the snake up
- Down Arrow: Move the snake down
- Left Arrow: Move the snake left
- Right Arrow: Move the snake right
- Python 3.x
- Turtle Graphics Library
Enjoy the game! 🎮