Cosy web games

Mastermind

Mastermind is a code-breaking logic game. Build a row of numbered colors, check it, then use the position and color clues to improve the next guess. Easy, Medium, and Hard modes change the code rules and number of attempts.

Controls: Tap a numbered color to add it to the row. Use Remove to correct the row, then tap Check code.

Mastermind
Open game ↗ Playable

Regional page

Play Mastermind in the UK

This UK page keeps Mastermind on the same no download PCder shelf. Use each clue to crack the hidden color code. Use the region switcher if you want the US, Canadian, or Australian page.

Quick answer

Mastermind game online

Mastermind is a logic game about finding a hidden color code. After each guess, black peg feedback counts colors in the correct position. White peg feedback counts correct colors placed elsewhere. This version adds numbers to every color and supports touch, mouse, and keyboard controls.

Best for
Play a free Mastermind code-breaking game with touch and keyboard controls.
Related searches
Mastermind game online, code breaker game, logic color puzzle, free Mastermind game

How to play

How to play Mastermind

  1. Build a guess Choose numbered colors until every open position in the current row is filled.
  2. Check the code Submit the row to compare it with the hidden code. The answer stays hidden until you win or run out of attempts.
  3. Read the feedback A black peg counts a correct color in the correct position. A white peg counts a correct color in another position.
  4. Narrow the options Use each result to change the next row. Match every position before your attempts run out.

Player guide

Change one part of the code at a time

The feedback gives counts, not positions. Keep colors that seem useful and change only one or two pegs so you can tell which part of the next clue changed.

Solving tip

Keep useful colors and test their positions

The feedback does not say which peg earned each clue. When a row scores well, keep most of it and move one or two colors. The next result will tell you whether that change helped.

Common questions

Mastermind FAQ

Can I play Mastermind on a phone?

Yes. Tap the six numbered color buttons to build a guess. The controls fit a narrow screen and do not rely on color alone.

What do the black and white pegs mean?

A black peg counts one correct color in the correct position. A white peg counts one correct color in a different position. The order of the feedback pegs does not match the order of your guess.

Can the hidden code repeat a color?

Medium and Hard may repeat colors. Easy uses four different colors, which makes the first few rounds easier to read.

What keyboard controls does Mastermind use?

Press 1 through 6 to choose a color. Press Backspace to remove the last color and Enter to check a complete row.

Does Mastermind save my progress?

It saves your total wins and current streak in local browser storage. The active code resets when the page closes or you start a new game.

Is this Mastermind game open source?

Yes. It is an original PCder game released under the MIT license. PCder hosts its HTML, CSS, and JavaScript.

Can I play Mastermind on PCder from the UK?

Yes. This UK page uses the same browser build for Mastermind, with UK spelling, regional links, and source notes kept nearby. A school, college, or workplace network may still block game sites.