Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nikelborm/python_snake


https://github.com/nikelborm/python_snake

Last synced: 1 day ago
JSON representation

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
```
## TODO

1. fix white pixel trails left by text leftovers:
```python
GAME_GRID_X_SIZE_IN_GAME_CELLS = 64
GAME_GRID_Y_SIZE_IN_GAME_CELLS = 64

CELL_SIZE_IN_PIXELS = 20
```
2. Refactor I guess
3. Add CLI renderer