/snake

A super minimal classic snake implementation written in Nim

Primary LanguageNimGNU General Public License v3.0GPL-3.0

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