Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 783 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 783 Bytes

Python Snake Game

Snake game in action!

This is a snake game in python. The default characters are as below.

  • Snake: #
  • Food: *
  • Background: .

GitHub

How to play

wasd or arrow keys or Vim hjkl for snake movement. q to quit. Any other key to pause. Press one of the movement keys to resume.

Running the game

python3 snake.py [flags]

Flags

See snake.py --help

Example configurations

python3 snake.py --char-head='' --char-snake='+' --char-bg=' '
python3 snake.py --color-snake blue --color-food red

Todo

  • Make horizontal and vertical speeds equal (see commit history for details)
  • Add support for best score saving/loading (tentative)