Skip to content

irsdkv/simple_snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

The simplest implementation of the snake game.

DearPyGui library used for visualization but logic isn't framework-depended and you can reuse snake_util.SnakeBody class as you wish.

Controls

  • Direction: WASD + arrow keys
  • Pause: Spacebar
  • Speed Up/Down: PgUp/PgDn

Installation

$ python -m venv .venv
$ . .venv/bin/activate
$ pip install -r requirements.txt
$ deactivate

Start

$ . .venv/bin/activate
$ python snake_game.py

Settings

See data/snake.toml

License

MIT License

Thanks

to RahulShagri an his https://github.com/RahulShagri/OG-Snake-Game for inspiration