1
2

Code Breaker

Crack the code with logic.

Step 1 of 2

What you'll learn in this level

  • How to find a solution by cleverly ruling things out
  • What an AI learns from a failed attempt
  • Why clever guessing beats trying everything

Crack the secret code

The computer hid a secret colour code made of 3 colours. Can you find it?

After each try you get clues. That's how AIs search for a solution too: guess, learn from clues, guess better.

How it works

  1. Guess

    You make a first try. At the start you know nothing at all.

  2. Read the clue

    The clue tells you two things. How many colours are right? And how many are in the right place?

  3. Rule out

    Every combination that doesn't match the clue drops away.

  4. Guess better

    Your next try comes from what is left. So the circle keeps getting tighter.

Guess first, then experiment

4 colours in 3 slots make 64 possible codes. And you get 6 tries. Is that enough?

Tip: Use the clues to rule colours out — like a detective.