A simple classic "Snake" game, written in Python using the Pygame library.
-
Install Python: If you don't already have Python, download and install it.
-
Install Pygame: Open your terminal or command prompt and run the following command:
Copy code pip install pygame
-
Clone the Repository:
bashCopy codegit clone [your_repository_link] cd [repository_folder_name]
-
Run the Game:
Copy code python snake_game.py
- Control the snake using the arrow keys (
↑
,↓
,←
,→
). - Eat the red apples to grow.
- Avoid colliding with yourself and the walls.
- Enjoy!
This project is distributed under the MIT license. See the LICENSE
file for more details.
Note: If you do not have a game screenshot (named screenshot.png
), you can simply remove or comment out the line referencing the screenshot.