Simple snake game.
2 months ago
2 months ago


A simple snake game I wrote because I was bored.

Picture of the game while running.


The game is written in C++ and dependes on the ncurses library. To build it on GNU/Linux with GCC you would use:

g++ snake.c -lncurses -o snake

It's written in a simple file to allow you to easily change the game's behaviour by modifying the code. You can start playing with the some of the global variables (WIDTH, HEIGHT, TIME_TO_MOVE, MAX_FRUITS, FRUIT_SCORE, HEAD, TAIL) to see how they affect the game.