Knuth's 5-guess algorithm guarantees solving any 4-peg code in ≤5 guesses. · Guaranteed ≤5 Guesses
Guess the 4-color code!
Pick colors with the palette, then click a peg to place. Or let the AI solve it.
Color Palette
Secret Code
Game Stats
Current Guess1 / 10
Possibilities Left1296
Knuth Guess—
Session Stats
Games Played0
Solved (You)0
Failed0
Avg Guesses—
Min Guesses—
Algorithm
Algorithm: Knuth (1977) Guarantee: Solves in ≤5 guesses Colors: 6, Pegs: 4 Black pin: Right color, right place White pin: Right color, wrong place Search: Minimax over remaining set First guess: Always 1122