Snake game written in C using ncurses.
You can compile this using make
or with the following steps
On Linux
clang main.c menu.c -o Snake -lncurses
If you have troubles compiling it on Linux, try this (idk why but in Gentoo -lncurses was not enough)
clang main.c menu.c -o Snake $(pkg-config --cflags --libs ncurses)
On Windows
gcc main.c -lpdcurses -o Snake.exe
To install pdcurses on Windows, download MinGW, and pdcurses from here and follow this steps.
To show more information like the board size, the fruit coordinates and the snake coordinates, you can use the debug option.
clang -lncurses -DDEBUG main.c -o Snake
Add score saving and loading