HOW TO PLAY · STEP-BY-STEP RULES

How to Play Mastermind: Red & White Clues, Duplicates & Scoring

Mastermind classic rules: create a hidden four-peg code, read red and white clues, handle repeated colors, use ten guesses and score multiple rounds.

CODEBREAKER · HOW TO PLAY
RULES AT A GLANCEMastermind Classic

Edition-verified instructions and examples.

4 secret positionsRed: exact placeWhite: right color only

Quick answer: how do you play Mastermind?

Mastermind is a two-player codebreaking game. One person, the Codemaker, hides a secret sequence of four colored pegs. The other, the Codebreaker, has up to ten guesses to work out the exact colors and positions.

After each four-peg guess, the Codemaker gives two kinds of clues: a red Key Peg for a correct color in the correct position and a white Key Peg for a correct color in a wrong position.

The clues give counts only, without marking which guessed pegs they describe. Once all four positions are correct, the Codebreaker has cracked the code and the players can swap roles for the next round.

Which Mastermind rules edition is covered?

This guide uses the Pressman / Goliath classic two-player edition with red and white feedback Key Pegs, six code colors, a hidden four-peg code and ten guess rows.

Some other Mastermind products use black and white Key Pegs, a rotating multilateral board or a different number of code positions. The rulebook inside your own box takes priority for those variants.

The current Goliath edition permits repeated colors in the secret code, with leaving holes empty as a further optional advanced challenge.

Step 1: prepare the Code Pegs and board

Place the Mastermind board between the players with the shielded hidden-code end facing the Codemaker. Separate the larger colored Code Pegs from the smaller red and white Key Pegs.

The Code Pegs come in six colors. The classic game uses four pegs per attempted code; the board has ten rows for the Codebreaker’s successive guesses.

Agree beforehand how many rounds you will play, so both players get fair opportunities to be Codemaker and Codebreaker.

Step 2: hide a secret four-color code

The Codemaker puts four Code Pegs behind the shield, one in each hidden code position, using any of the six available colors.

Repeated colors are legal in the published Pressman instructions. For example, a secret code could be Red–Blue–Blue–Green rather than four completely different colors.

Keep the code unchanged and concealed throughout the round. The Codemaker must give accurate feedback based on that single secret, not move a peg to make a later guess harder.

Step 3: make a four-peg guess

The Codebreaker chooses four colored pegs and places them in the first empty guess row. Their order matters as much as their colors.

A guess might be Red–Blue–Yellow–Green. The Codemaker compares each position against the hidden sequence and supplies the appropriate smaller Key Pegs.

The guess stays on the board along with its feedback. This permanent record helps the Codebreaker compare clues and eliminate inconsistent possibilities.

What does a red Key Peg mean?

A red Key Peg means one Code Peg in the guess has both the correct color and the correct position.

For example, if the secret’s first position is Red and the guess’s first position is also Red, that pair earns one red clue.

Each exact match is counted once. When counting clues, deal with exact-position matches before allocating white clues for misplaced colors.

What does a white Key Peg mean?

A white Key Peg means one guessed peg has a color that exists in the secret code, but it is not in that secret position.

Example: secret Red–Blue–Green–Yellow; guess Blue–Red–Purple–Orange. Red and Blue are both present but misplaced, giving two white clues and no red clues.

White does not mean the color is almost correct or belongs somewhere near that square. It specifically represents a matched color in a different position.

Does the arrangement of clue pegs reveal positions?

No. The Codemaker puts the red and white Key Pegs into the row’s smaller holes without mapping each clue to a particular guessed position.

For example, two red Key Pegs mean exactly two colors are positioned correctly somewhere in the guess. You still need reasoning to determine which two.

The Codemaker must not point to, line up with or verbally identify which guessed peg a clue refers to. That limited information is what makes the puzzle interesting.

How to count clues when colors repeat

When the guess repeats a color, it cannot earn more clues for that color than the number of matching Code Pegs actually present in the secret.

Start by matching exact positions, then match remaining correct colors without counting any secret or guess peg twice. A red match always takes precedence over a possible white match.

For example, if the secret contains one Blue but the guess contains three Blue pegs, at most one of those Blues can generate any red or white clue.

Worked example: two red clues and one white

Suppose the hidden code is Red–Blue–Blue–Green. The Codebreaker guesses Red–Blue–Yellow–Blue.

Positions one and two are exactly correct, so the Codemaker places two red Key Pegs. Of the remaining guesses, the Blue at position four matches the remaining hidden Blue at position three, but is misplaced.

The feedback is therefore two red, one white. Yellow is absent from the code, so it earns no clue. The key pegs do not disclose which positions caused those matches.

How does a round continue?

After receiving clues, the Codebreaker makes a new four-peg guess in the next row, leaving earlier rows visible as evidence. Each new guess is compared against the same secret.

Continue until the Codebreaker matches all four colors in their exact positions or uses all ten available guess rows.

Do not stop merely because the current guess has four feedback pegs in total: for instance, two red and two white means all colors are present, but only two are positioned correctly.

What happens when the code is cracked?

A successful guess earns four red Key Pegs. The Codemaker lowers the shield to show that the hidden code really matches the four guessed pegs.

In the published multi-round scoring system, the Codemaker receives one point per guess row used by the Codebreaker, even when the code is solved.

Then the two people swap roles for the next round. Over the agreed number of rounds, the player with the higher total of Codemaker points wins.

What if the Codebreaker fails in ten guesses?

If the Codebreaker cannot find the secret after all ten rows, the Codemaker scores eleven points: ten for the guesses plus one bonus.

That round is over, and players change roles for the next game. The Codebreaker does not receive a last-minute eleventh guess under the classic printed rules.

The round limit means information-gathering guesses are useful only if they help narrow the possibilities efficiently. Random repeats waste a finite row.

What if the Codemaker gives an incorrect clue?

Accurate feedback is essential. The Pressman rules state that if the Codebreaker can demonstrate an incorrect clue from the Codemaker, the round is replayed.

Under that printed scoring exception, the Codebreaker receives three points and the Codemaker receives zero for the erroneous game.

This is why scoring red exact matches before white color-only matches matters. Repeated colors can create accidental overcounting if the Codemaker is not careful.

Optional extra challenge: empty code positions

The standard Pressman/Goliath code uses four colored pegs with duplicates allowed. An optional harder variant lets the Codemaker leave one or more positions empty.

Under that rule, an empty position is treated like another possible color when evaluating the code. Both players should agree on the optional rule before selecting the hidden sequence.

Do not apply empty-slot deduction to an ordinary four-peg round or assume all Mastermind products use the identical optional variation.

Beginner strategy: use clues systematically

After each guess, record what you know rather than focusing only on what looks close. An early guess might test whether a color is present, while a later one changes positions to identify exact matches.

If a guess produces zero red and zero white, none of its guessed colors appears in the hidden code, subject to the chosen variant. That can eliminate many possible future guesses.

When feedback shows some correct colors, change positions deliberately and compare results. A controlled experiment often gives more information than changing all four colors without a reason.

Common Mastermind rules mistakes

Wrong: assign a red or white Key Peg to a specific guessed position. The feedback gives counts without identifying the positions.

Wrong: award three feedback pegs for a repeated color when the secret contains only one copy. Each secret peg may match only once, with red exact matches first.

Wrong: call a round solved after four mixed red and white clues; only four red indicate an exact solution. Wrong: assume ten failed guesses entitle the Codebreaker to an extra eleventh try.

Mastermind rules FAQ

How many colors are available? Six. How many secret positions? Four. How many attempts? Ten.

What do red and white Key Pegs mean? Red is exact color and position; white is correct color in a different position.

Are repeated colors allowed? Yes. Who earns points in the published multi-round game? The Codemaker, based on the number of guesses used, with a bonus if the code remains unsolved after ten.

Pressman official rules and Mastermind overview

The guide uses original explanations and a worked code example; it does not reproduce printed diagrams or imply personal playtesting. For the game’s background, components and comparisons visit our Mastermind game overview.

Readers who enjoy deduction can also explore Cryptid, which adds a map and multiple clue-holders.

Learn at Your LevelFrom beginner to expert
Complete CoverageRules, strategy, expansions and more
Trusted RecommendationsCurated by board game enthusiasts
Always UpdatedNew guides and games regularly

Similar Posts