Puzzle Games

Code Breaker

Code Breaker is a crisp deductive code-cracking board game designed by MCR for TapGameHub. Behind the locked vault banner at the top of the wooden decoder sits a hidden sequence of four or five colored pegs chosen from seven distinct hues.

Code Breaker preview

Ready to play?

Play here with no in-game ads. Hosted by TapGameHub; no account or installation required. Progress, where supported, stays in this browser.

Select Play game to start here.

Updated

About Code Breaker

Code Breaker is a crisp deductive code-cracking board game designed by MCR for TapGameHub. Behind the locked vault banner at the top of the wooden decoder sits a hidden sequence of four or five colored pegs chosen from seven distinct hues. You have ten turns to unmask the exact sequence — not by luck, but by testing structured hypotheses and cross-referencing the black and white clue pins returned after every row.

Every peg is stamped with a clear letter emblem (R, O, Y, G, B, P, C) alongside rich radial shading, making patterns effortless to scan on both desktop monitors and phone screens. Toggle freely between 4-peg and 5-peg vaults or turn duplicate colors on and off to tailor the deduction depth to your mood.

How to play

  1. Choose 4 Pegs or 5 Pegs in the header and decide whether Repeats On or Unique Only suits your round.
  2. Fill the highlighted active row by tapping any of the seven color pegs along the bottom tray (or pressing keys 1 through 7). Click any slot directly if you want to overwrite a specific position.
  3. Select Check Guess (or press Enter) once every slot in the row is filled.
  4. Study the clue box on the right side of that row — each solid dark pin means right color in the right column, and each white outlined pin means right color in a different column.
  5. Refine your next hypothesis using all previous rows together until you score four (or five) exact dark pins before Turn 10 expires.

Controls

Action Keyboard & Mouse Touch
Place a color peg Click a palette peg, press 1–7, or press R, O, Y, G, B, P, C Tap a color peg in the bottom tray
Choose active slot Click any slot in the active row or press Left / Right Arrow Tap any slot in the active row
Clear peg or row Press Backspace / Delete or click Clear Row Tap Clear Row or tap the selected peg again
Submit active guess Press Enter or click Check Guess Tap Check Guess on the board
Start a fresh vault Click New Code in the top bar Tap New Code in the top bar

Game modes and feedback rules

  • Exact duplicate accounting ensures clue pins never double-count. If the secret holds one Ruby peg and your guess places two Ruby pegs, at most one pin (dark if one is exact, otherwise white) is awarded for Ruby.
  • 4-Peg Standard Vault balances brisk three-minute logic with classic five-turn optimal play.
  • 5-Peg Master Vault adds a fifth column across seven colors while keeping the same ten-row ceiling, rewarding tight information-gathering openers.
  • Win streak and best-turn tracking records your current consecutive vault streak and your fewest guesses needed on both 4-peg and 5-peg boards.

Strategy tips

  • Cover four or five colors across your first two turns. When repeats are enabled, opening with a balanced pair like R-R-O-O followed by Y-Y-G-G (or R-O-Y-G in Unique Only mode) rapidly narrows which colors belong in the vault before you spend turns hunting positions.
  • Change one variable at a time in the midgame. If two rows differ in only a single slot and your total pin count rises or drops by one, you have proven whether the swapped-out color or the incoming color belongs in the code.
  • Test every candidate against all prior rows before submitting. A valid secret must reproduce the exact black-and-white pin counts of Turn 1, Turn 2 and Turn 3 simultaneously; discarding contradictions early saves two or three late turns.
  • Use confirmed absent colors as positional probes. Once you know Cobalt (B) is nowhere in the vault, filling three slots with Cobalt and placing one suspect color in Slot 1 isolates whether that suspect color belongs in Slot 1 without muddying the pin count.

Frequently asked questions

What do the black and white feedback pins mean in Code Breaker?

Each solid dark pin confirms one peg has both the right color and exact slot position, while each white ring pin confirms a right color placed in the wrong slot.

Do feedback pins line up in the same order as my four pegs?

No. Feedback pins summarize the whole row — dark exact matches are listed first and white misplaced matches second — so you must deduce which pegs earned them.

Can the secret combination contain duplicate colors?

Yes when Repeats On is enabled, which is the default tournament setting; click the Repeats On button to switch to Unique Only if you prefer all-distinct pegs.

Is Code Breaker accessible for players with color vision deficiency?

Yes. Every colored peg carries a bold single-letter emblem — R, O, Y, G, B, P and C — so you can read and input combinations unambiguously by letter or color.

What is the difference between 4 Pegs and 5 Pegs mode?

Four Pegs creates 2,401 possible codes with repeats enabled, whereas Five Pegs expands the vault to 16,807 possibilities inside the same ten-turn limit.

Game not loading or controls not responding? See help with loading, controls and saves.

Search 204 free games

Instant browser play — no download or sign-up.

2048Puzzle GamesA Dark RoomAdventure GamesAstrayPuzzle GamesDesert RacingRacing GamesOpen Tower DefenseStrategy GamesEvolveSimulation GamesChessBoard GamesSolitaireCard GamesHextrisPuzzle GamesRadius RaidAction GamesGem CavernsAdventure GamesFour in a RowBoard GamesCheckersBoard GamesReversiBoard GamesDots and Boxes2 Player GamesAir Hockey2 Player GamesHoop ShotSports GamesMini GolfSports GamesPizza RushCooking GamesStyle StudioDress Up GamesMath SprintLearning & Creative GamesWord SearchLearning & Creative GamesMinesweeperPuzzle GamesSudokuPuzzle GamesFreeCellCard GamesSunny LemonadeSimulation GamesSnakeAction GamesBrick BreakerAction GamesTurbo LapsRacing GamesTreasure MazeAdventure GamesSea BattleStrategy GamesTower BlocksAction GamesUnderrunAction GamesCorner DriftRacing GamesHill BuggyRacing GamesSunset HighwayRacing GamesHexGLRacing GamesSpace HuggersAction GamesBounce BackAdventure GamesLight CoilAction GamesClumsy BirdAction GamesBubble ShooterPuzzle GamesWater Sort PuzzlePuzzle GamesJewelsbackPuzzle Games0h h1Puzzle Games0h n0Puzzle GamesDino GameAction GamesBlock PuzzlePuzzle GamesClassic Pong2 Player GamesGrid DefenderStrategy GamesSpider SolitaireCard GamesFifteen SlidePuzzle GamesNonogramPuzzle GamesSokoban CratePuzzle GamesLights OutPuzzle GamesPipe PlumberPuzzle GamesLaser MirrorPuzzle GamesHashi BridgesPuzzle GamesKakuro SumsPuzzle GamesKenKen CagesPuzzle GamesSlitherlinkPuzzle GamesTangram FitPuzzle GamesUnblock CarPuzzle GamesHexa FillPuzzle GamesFlow ConnectPuzzle GamesPeg SolitairePuzzle GamesTower of HanoiPuzzle GamesUntangle PlanarPuzzle GamesCode BreakerPuzzle GamesStar BattlePuzzle GamesTents & TreesPuzzle GamesGravity MazePuzzle GamesPoly SlicePuzzle GamesChain AtomsPuzzle GamesNeon PinballAction GamesAsteroid DriftAction GamesFruit SliceAction GamesGrapple SwingAction GamesFlip RunnerAction GamesWhack-a-MoleAction GamesRhythm SpikeAction GamesAlien ShieldAction GamesSub Depth ChargeAction GamesSky InterceptorAction GamesKnife ThrowAction GamesColor GateAction GamesWell DiverAction GamesCopter CaveAction GamesLaser Grid DodgeAction GamesRiver HopperAction GamesCloud JumperAction GamesIce DodgeballAction GamesPolarity MagnetAction GamesMahjongBoard GamesGomoku FiveBoard GamesChinese CheckersBoard GamesBackgammonBoard GamesMancalaBoard GamesNine Men's MorrisBoard GamesLudo RaceBoard GamesDominoes ChainBoard GamesHex PathBoard GamesMini ShogiBoard GamesSnakes & LaddersBoard GamesCorridor WallsBoard GamesFox & HoundsBoard GamesPyramid 13Card GamesTriPeaks SolitaireCard GamesYukon SolitaireCard GamesGolf SolitaireCard Games21 StacksCard GamesHearts TrickCard GamesSpades BidCard GamesCrazy EightsCard GamesCribbage 15Card Games8-Ball PoolSports GamesBullseye ArcherySports GamesPenalty KickSports GamesTen-Pin BowlingSports GamesTable TennisSports GamesBadminton CourtSports GamesDarts 301Sports GamesIce CurlingSports GamesSki SlalomSports GamesHome Run PitchSports GamesTrack HurdlesSports GamesClay TargetSports GamesHex ConquestStrategy GamesCard BattlerStrategy GamesNode SiegeStrategy GamesTurn SquadStrategy GamesCastle TrebuchetStrategy GamesAnt TrailsStrategy GamesTraffic ControlStrategy GamesBridge TrussStrategy GamesTrap KeepStrategy GamesMars GridStrategy GamesAuto FormationStrategy GamesHighway OvertakeRacing GamesTrials BikeRacing GamesPrecision ParkingRacing GamesSpeedboat BuoysRacing GamesRail SwitcherRacing GamesIce HovercraftRacing GamesLunar TouchdownRacing GamesSlot CircuitRacing GamesPixel RogueAdventure GamesDeep DiverAdventure GamesFossil DigAdventure GamesWind GliderAdventure GamesStealth GuardAdventure GamesEcho CloneAdventure GamesLighthouse BeamAdventure GamesVine ExplorerAdventure GamesAlchemy CauldronAdventure GamesZero-G SalvageAdventure GamesDeep MinerSimulation GamesPocket FarmSimulation GamesEspresso BarSimulation GamesReef AquariumSimulation GamesMini City GridSimulation GamesCaravan TradeSimulation GamesBelt FactorySimulation GamesOrbit SandboxSimulation GamesHoneycomb HiveSimulation GamesRail NetworkSimulation GamesFlower GeneticsSimulation GamesBurger StackCooking GamesSushi BarCooking GamesWaffle IronCooking GamesRamen TimerCooking GamesSmoothie BarCooking GamesArtisan BakeryCooking GamesGelato ScoopCooking GamesSteamer BasketCooking GamesCozy RoomDress Up GamesPet SalonDress Up GamesCake DecoratorDress Up GamesSneaker StudioDress Up GamesPatio GardenDress Up GamesPortrait MakerDress Up GamesNail Art StudioDress Up GamesSticker ZineDress Up GamesTank Maze Duel2 Player GamesTap Tug2 Player GamesLight Trail Duel2 Player GamesSumo Ring2 Player GamesSlime Volley2 Player GamesWind Cannon2 Player GamesNim Strategy2 Player GamesWord RainLearning & Creative GamesLetter WheelLearning & Creative GamesTone MemoryLearning & Creative GamesFraction PieLearning & Creative GamesCapital QuizLearning & Creative GamesElement MatchLearning & Creative GamesClock AnglesLearning & Creative GamesBinary SwitchLearning & Creative GamesTyping WPMLearning & Creative GamesFlash NumbersLearning & Creative GamesTic Tac ToeBoard GamesBlock Blast PuzzlePuzzle GamesWord GuessLearning & Creative GamesWatermelon MergePuzzle GamesUnblocked Games24 gamesSolitaire12 gamesCar Games14 gamesBlock Puzzle & Merge Games12 gamesWord Games10 gamesBall & Pool Games14 gamesAction GamesArcade · Runners · Shooters · PinballAdventure GamesExploration · Roguelite · Mazes · QuestsPuzzle GamesLogic Grids · Numbers · Nonogram · MatchingRacing Games3D Racing · Drifting · Hill Climb · Time TrialsSports Games8-Ball Pool · Mini Golf · Basketball · BowlingStrategy GamesTower Defense · Turn-Based · Hex Tactics · NavalSimulation GamesIdle & Tycoon · Farming · Automation · SandboxDress Up GamesFashion · Room Decor · Makeover · Custom DesignCooking GamesRestaurant · Pizza & Burgers · Sushi · BakingCard GamesSpider Solitaire · Klondike · FreeCell · Trick-TakingBoard GamesChess · Mahjong · Checkers · vs Computer or Friend2 Player GamesSame Screen · Shared Keyboard · Multi-Touch · VersusLearning & Creative GamesWord Games · Typing Test · Mental Math · Memory