Tapnook
  • English
  • 简体中文
  • 繁體中文
  • 日本語
  • 한국어
  • ไทย
  • Tiếng Việt
  • Bahasa Indonesia
  • Español
  • Português
My recordsRandom game

Guides / Think Like a Codebreaker

Guide5 min readCode Crack

Code breaker strategy: crack a four-symbol code in fewer guesses

How to choose guesses in Code Crack that eliminate the most possibilities, starting with the best opening.

How big the problem is

Four positions with six possible symbols each, repeats allowed, gives 1,296 possible codes. Ten guesses sounds generous against that, but only if each guess removes a large share of what is left. A guess is good when its possible answers split the remaining codes into many small groups.

Open with two pairs

The computer scientist Donald Knuth showed in 1977 that this kind of code can always be found in five guesses or fewer, and his method opens with two pairs: 1 1 2 2. Four different symbols feel more informative, but two pairs divide the possibilities more evenly.

Follow up with 3 3 4 4, adjusted for what you learned. After two guesses you usually know how many of each symbol are in the code, and the rest is working out positions.

Stay consistent

Before pressing Check, test your guess against every earlier row: if this guess were the real code, would those rows have received the answers they did? If not, the guess cannot be right, and it usually teaches you less than one that could be.

Zero exact and zero close is the most useful answer of all, because it deletes whole symbols. Do not be disappointed by it.

Play Code Crack