The goal of Code-Breaker is to guess the secret code created by the game. The code consists of a sequence of numbers.
The code is 4 digits long, with each digit randomly chosen between 1 and 6. Players can make up to 8 guesses to crack the code.
For each turn, the player selects a combination of 4 numbers. The game provides feedback after each guess:
Red Tokens: Number is correct and in the correct position.
White Tokens: Number is correct but in the wrong position.
No token indicates a number not in the code.
If all 4 numbers are guessed correctly in the right positions (4 red tokens), the player wins. If player fails to guess the code within 8 turns, the game ends, and the secret code is revealed.