~brown121407/snake

Simple snake game.

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~brown121407/snake
read/write
git@git.sr.ht:~brown121407/snake

You can also use your local clone with git send-email.

#snake

A simple snake game I wrote because I was bored.

Picture of the game while running.

#Hacking

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.

#License

GNU GPLv3