Single-ply non-gui algorithm to make guesses for the game mastermind.