Skip to content

Frechousky/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake

Snake game with Python and Pygame

Requirements

python 3 (python 3.11+ recommended)

Install

  • (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

Run game

python src/snake.py

Run tests

pytest

How to play

  • 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

About

Snake game with Python and pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages