Single file ncurses implementation of the game Snake
Compile like:
gcc snake.c -lcurses -lm -o Snake
Run: ./snake
Use arrow keys to move the snake around.
Cool features:
-
The game screen is resizable while playing. Nice to use with tmux.
-
Penalty apples when timeout is reached. Red timeout indicator embedded in the bottom wall.
-
The snake moves faster with each eaten apple. Try to reach a score above 100 points.
-
Status bar embedded on the upper wall.
-
Simple splash screens on game start, snake death, final score and game end.
TODOs:
-
AI snake opponent.
-
Wall/Maze generation depending on the level
-
Cooperative gameplay on one keyboard
-
Network play ?
LICENSE: https://en.wikipedia.org/wiki/WTFPL
