This is a simple snake game implemented in Python using the Pygame library.
Make sure you have Python installed on your system. You'll also need to install Pygame. You can install it via pip:
pip install pygame
- Clone the repository to your local machine:
git clone https://github.com/your-username/python-snake-game.git
- Navigate to the project directory:
cd python-snake-game
- Run the game:
python snake_game.py
- Use the arrow keys (UP, DOWN, LEFT, RIGHT) to control the snake.
- Eat the fruits to score points.
- Avoid colliding with the walls or the snake's own body.
- Snake grows longer as it eats fruits.
- Score tracking.
- Speed increases as the snake grows longer.
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Pygame community for providing a fun and easy-to-use library for game development.
- Inspired by classic snake games.