Code Crack
Puzzle GamesCode Crack
Work out a hidden four-colour code in ten tries using clever guesses and the clue pegs.
Quick start
Pick a colour for each of the four slots and press Check. Black peg: right colour, right place. Purple peg: right colour, wrong place. Colours can repeat in the hidden code. Ten guesses is all you get, so make each one count.
Controls: Tap or click
About this game
A thinking game for one, in the spirit of the old pegboard puzzles. The computer hides a code of four colours chosen from six, and colours may appear more than once. You make a guess, and pegs tell you how close you came: a black peg for each colour in exactly the right position, and a purple peg for each colour thatโs in the code but in the wrong place. The pegs donโt say which colours they mean, and thatโs the puzzle. You have ten guesses to crack it. Free to play in your browser, with no download and no sign-up.
Family tips
Start with guesses that use pairs of colours, such as two reds and two blues. The pegs then tell you about two colours at once without too many possibilities to untangle.
Track every guess as a constraint. Before your next try, make sure itโs consistent with everything the earlier pegs have told you; a guess that couldnโt possibly be right wastes a turn.
When you know all four colours but not their order, move one or two colours at a time. Watching which pegs turn from purple to black shows you exactly which swap worked.