Six-guess algorithm
This article may contain original research. Please improve it by verifying the claims made and adding references. Statements consisting only of original research may be removed. More details may be available on the talk page. (June 2008) |
Divide the 1296 possible games into four categories:
- 0 duplicates (e.g. abcd)
- 1 duplicate (e.g. aabc)
- 2 duplicates (e.g. aabb or aaab)
- 3 duplicates (e.g. aaaa)
- Guess 2 is always "bcde"
- Guess 3 is always "cdef"
- If the list for guess 4 starts with a game on the left side of the list below, then use the game to its right instead:
- "acfb" → "dcad"
- "aebf" → "edfd"
- "aefb" → "eacc"
- "afbe" → "bfcd"
- "bafe" → "eadc"
- "beaf" → "edae"
- "befa" → "eeda"
- "eabf" → "fdfb"
- "aadb" → "babd"
- "abae" → "bbcc"
- "aeaf" → "cffd"
- "cafa" → "fdfa"
- "aaee" → "dddf"