a snake game write by ncurses, in C++