Mastermind is a game of logic – and luck. The goal is to guess the correct order of a random selection of colours in as few moves, or as little time, as possible.