MasterMind is a game where you try to guess a 4-part code consisting of any combination of 6 colours. After each guess, you are given hints as to how many colours are exactly correct, or in the wrong position. The fewer the number of guesses, the better.