This is the well known logic game of mastermind.

To install the programm just do qmake, make and finaly make install as root

Have fun.
