Code Crack

Puzzle Games

Code 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.

Game type
Puzzle Games
Last updated
Sep 18, 2026
Plays on
Phone, tablet and computer
Made by
MerryArcade (AdrawTech)

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.

If you liked Code Crack

More puzzle games โ†’