This is a simple Snake Game implemented in Python using the Pygame library.
- Run the
pysnake.py
file. - Use the arrow keys to control the snake:
- Up arrow: Move the snake up
- Down arrow: Move the snake down
- Left arrow: Move the snake left
- Right arrow: Move the snake right
- Try to eat the food (red square) to make the snake grow.
- Avoid collisions with the snake's own body and the game boundaries.
- The game ends when the snake collides, and a Game Over screen appears.
- Press 'Q' to quit the game or 'R' to retry.
- Snake blinks in a different color once it eats food.
- The snake's speed increases slightly after eating food, making the game more challenging.
- Game Over screen with options to retry or quit.
- Python 3.x
- Pygame library
pip install pygame
- This game was created as a fun project and is freely available for download and modification.
Feel free to fork, modify, and use this code for learning and educational purposes. Happy coding!