Mastermind game algorithm simulation in Matlab.