Skip to content

A super minimal classic snake implementation written in Nim

License

Notifications You must be signed in to change notification settings

opensource-force/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake 🐍

A super minimal classic snake implementation written in Nim



Compiling

Download snake

git clone https://github.com/opensource-force/snake; cd snake/src

Download the term nimble library

nimble install https://github.com/wick3dr0se/term

Compile to a binary executable

nim c snake.nim

Installation (optional)

Install to $PATH

cp snake /usr/local/bin

Execution

Execute program from within downloaded directory

./snake

Otherwise execute snake from anywhere if it's in $PATH

snake

Controls

H, A, : Left
J, S, : Down
K, W, : Up
L, D, : Right

Q, Ctrl+C: Quit

About

A super minimal classic snake implementation written in Nim

Resources

License

Code of conduct

Stars

Watchers

Forks