https://github.com/spafic/pysnake
PySnake is a classic Snake Game implemented in Python using the Pygame library. Control a snake, eat food, avoid collisions, and strive to achieve the highest score in this nostalgic arcade experience.
https://github.com/spafic/pysnake
Last synced: about 1 year ago
JSON representation
PySnake is a classic Snake Game implemented in Python using the Pygame library. Control a snake, eat food, avoid collisions, and strive to achieve the highest score in this nostalgic arcade experience.
- Host: GitHub
- URL: https://github.com/spafic/pysnake
- Owner: Spafic
- License: mit
- Created: 2024-07-15T14:16:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T14:52:24.000Z (about 2 years ago)
- Last Synced: 2025-02-06T20:57:19.019Z (over 1 year ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PySnake đ
PySnake is a classic Snake Game implemented in Python using the Pygame library. Control a snake, eat food, avoid collisions, and strive to achieve the highest score in this nostalgic arcade experience. The game features intuitive controls, dynamic gameplay mechanics, and a sleek dark-themed UI for optimal visibility. Enjoy hours of fun as you navigate the snake through its journey of growth and challenge.
## Installation âī¸
1. **Clone the repository:**
```bash
git clone https://github.com/Spafic/PySnake.git
cd PySnake
2. **Install dependencies:**
Make sure you have Python 3.x and Pygame installed. If not, install Pygame using pip:
```bash
pip install pygame
3. **Run the game:**
```bash
python main.py
## Controls đšī¸
Use arrow keys (`â`, `â`, `â`, `â`) to change the direction of the snake.
## Gameplay đŽ
- The snake starts moving in a default direction.
- Control the snake to eat the randomly appearing food.
- Each food eaten increases the snake's length and score.
- The game ends if the snake collides with its own body or the game borders.
- Click the "Play Again" button to restart the game after a game over.
## Contributing đ¤
Contributions are welcome! Fork the repository and create a pull request with your improvements.
## License đ
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.