A fun project to create a simple Snake game implemented with pygame
Download the Python 3 installer package from the official website and install it, if not installed previously.
Run the following in the terminal to install the Pygame library
pip3 install pygame
simply run the file main.py or run Python main.py in the terminal and
click on the play button
- Use the ⬅left, ➡right,️ ⬆up️, ⬇down ️arrow keys to move the snake
- food will appear randomly on the screen. Eating each piece gives you points.
- If you hit the ends of the screen, the game will end.
- If you accidentally eat your own body, the game will end.
- the game speed gets faster as the snake grows
- Beat your own high score 🏅