Welcome to the Snake Game repository! This project is a simple yet entertaining implementation of the classic Snake game in Python. The game is designed to be easy to understand, making it a perfect introduction to game development using Python.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run the game by executing the
main.py
file.
python main.py
- The game window will open automatically, and you'll find yourself in control of a snake.
Gameplay.mp4
Use the arrow keys to control the snake's movements:
- Up arrow key: Move the snake up
- Down arrow key: Move the snake down
- Left arrow key: Move the snake left
- Right arrow key: Move the snake right
- The snake starts at the center of the screen.
- The objective is to eat the food to grow longer and score points.
- The game ends if the snake collides with the edge of the screen or its own body.
- The player with the highest score wins the game.
This project serves as an excellent introduction to game development in Python. It utilizes the Turtle library, a beginner-friendly library for creating graphics and games. If you're new to Turtle, you can learn more about it here.
Feel free to explore the code, tweak it, and enhance the game to suit your preferences. Happy gaming! 🐍🎮