ColorCode is a Mastermind game implementation for KDE and the latest version, 0.8.5, has been modified to use Qt5.
ColorCode, dubbed as “Advanced MasterMind game and solver”, is a clone of the Mastermind board game, comes with features such as preset and custom level difficulties, play/pause options, appearance configuration, hints, game timer, human vs computer or computer vs human game modes.
Compile and Install ColorCode 0.8.5 in Ubuntu 14.04/15.10/Mint 17.x
Download the source tarball from here (direct link here) and uncompress it.
Install the dependencies:
sudo apt-get build-dep colorcode
Inside the ColorCode-0.8.5 directory, issue the following commands:
qmake make sudo cp colorcode /usr/bin
Or just run ColorCode from within the source directory, using ./colorcode.