This is the classic game of snake for the terminal in C using the ncursesw library.
To play just execute in your terminal the snake binary found in the releases page.
-
w or UP to move up
-
s or DOWN to move down
-
a or LEFT to move left
-
d or RIGHT to move right
-
q to quit the game
-
p to pause the game
-
ENTER or q to return to menu when the game is over
Install the ncursesw library by using:
sudo apt install libncursesw6
To compile the code in C use the standard GCC compiler by including the library:
gcc -o snake snake.c -lncursesw