This is a simple Snake game implemented in Python using the Pygame library.
-
Install Python (if not already installed):
- Download from https://www.python.org/downloads/
-
Install Pygame: Open a terminal or command prompt and run:
pip install pygame
-
Run the Game: In the project directory, run:
python main.py
- Arrow keys: Move the snake (Up, Down, Left, Right)
- R: Restart the game after game over
Eat the red food to grow the snake and increase your score. Avoid running into the walls or yourself!