This is a simple Snake game built using Python and the turtle module. The game allows the player to control the snake, eat food to grow, and avoid colliding with the walls or itself.
- The snake moves on the screen and grows each time it eats food.
- The player can control the snake's direction using the arrow keys.
- The game resets when the snake collides with itself or the wall.
- Python 3.x
turtlemodule (usually comes pre-installed with Python)
- Ensure that Python is installed on your machine.
- Save the provided code in a Python file (e.g.,
snake_game.py). - Run the script using the following command:
python main.py