Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikelborm/python_snake
https://github.com/nikelborm/python_snake
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikelborm/python_snake
- Owner: nikelborm
- Created: 2022-10-16T18:25:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-16T01:59:37.000Z (about 2 months ago)
- Last Synced: 2024-11-16T02:22:00.742Z (about 2 months ago)
- Language: Python
- Size: 299 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python snake
For all the AMOLED enjoyers out there:
| Game active | Game over |
|---|---|
| ![Screenshot when the game is active](https://raw.githubusercontent.com/nikelborm/python_snake/refs/heads/main/readme_assets/Screenshot%20From%202024-11-16%2004-50-03.png) | ![Screenshot when the game is over](https://raw.githubusercontent.com/nikelborm/python_snake/refs/heads/main/readme_assets/Screenshot%20From%202024-11-16%2004-50-13.png) |## Prepare:
```bash
python -m venv .venv
. .venv/bin/activate
pip install -r ./requirements.txt
```## Run:
```bash
. .venv/bin/activate
python main.py
```
## TODO1. fix white pixel trails left by text leftovers:
```python
GAME_GRID_X_SIZE_IN_GAME_CELLS = 64
GAME_GRID_Y_SIZE_IN_GAME_CELLS = 64CELL_SIZE_IN_PIXELS = 20
```
2. Refactor I guess
3. Add CLI renderer