Snake game with Python and Pygame
python 3 (python 3.11+ recommended)
- (optional) create virtual env
python -m venv .venv
- (optional) activate virtual env
source .venv/bin/activate
- install deps
pip install --upgrade pip && pip install -r requirements.txt
- game is ready to be played
python src/snake.py
pytest
- top/right/bottom/left arrow: snake advances in top/right/bottom/left direction (position updates once each frame)
- press any key to restart if you loose