This project is a simple implementation of the classic Snake game using the Python Turtle graphics library.
- The game starts when the player presses arrow keys to control the snake's direction.
- The player's goal is to eat the red food, which increases the score and the snake's length.
- The game ends if the snake collides with the boundaries of the screen or itself.
- The player can pause and resume the game by pressing the "Escape" key.
-
Clone the project or download it as a ZIP file.
-
Run the
main.py
file to start the game:python main.py
"
Use the arrow keys to control the snake's direction and the "Escape" key to pause and resume the game.
Controls
Use the "Up" arrow key to move the snake up. Use the "Down" arrow key to move the snake down. Use the "Right" arrow key to move the snake right. Use the "Left" arrow key to move the snake left. Press the "Escape" key to pause and resume the game. Screenshots
Game Over Screen Paused Screen
Contribution
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.
License
This project is licensed under the MIT License. For more information, refer to the LICENSE file.