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
Install to $PATH
cp snake /usr/local/bin
Execute program from within downloaded directory
./snake
Otherwise execute snake
from anywhere if it's in $PATH
snake
H
, A
, ←
: Left
J
, S
, ↓
: Down
K
, W
, ↑
: Up
L
, D
, →
: Right
Q
, Ctrl+C
: Quit