Start with a guess, a permutationof 4 numbers. If you manage to guess anything correctly, you will receive a clue in the form of a red or white token.
Easy Mode: 10 Guesses, 1-4 digits for options
Hard Mode: 8 Guesses, 1-6 digits for options
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.