The objective of board game Mastermind is to correctly guess the secret code chosen by the codebreaker (another player or the game itself) within a certain number of attempts.