A terminal snake game with vim's
HJKL
key bindings. Written purely in C with the ncurses library.
First, install the dependency (macOS has the dependency pre-installed)
$ sudo apt-get install libncurses5-dev # on Debian/Ubuntu
Next, install the game
$ git clone https://github.com/koallen/hjkl-snake.git
$ cd hjkl-snake
$ make
After compilation, you can run the game with
$ ./snake