A secret four-digit code is generated at the start of the game. The player inputs a guess. The game responds with clues - how may of the digits are correct and placed in the right spot, how many digits are correct but in the wrong spot, and how many digits are totally wrong. The player has 20 attempts to guess the correct secret code.