colouring

# apt-get install libncurses5-dev libncursesw5-dev
$ g++ -o colouring colouring.cxx -lncurses
$ ./colouring