Playing Mastermind with two players: online (Race, Duel) and on paper
- Race: the same code for both, the fastest wins.
- Duel: each sets a code for the other, the fewest guesses wins.
- Paper or board: the original game, where the codemaker gives the feedback.
Mastermind was born as a two-player game: a codemaker who hides a code, and a codebreaker who looks for it. This guide covers three ways to play it with two people: online in Race mode, online in Duel mode, and on paper or on the board, with the right way to give feedback without mistakes. For the basics, see the rules of Mastermind.
Three ways to play with two
| Race (online) | Duel (online) | Paper or board | |
|---|---|---|---|
| Who sets the code? | The server | Each player, for the other | The codemaker |
| Who gives feedback? | The server | The server | The codemaker |
| Who wins? | The first to find it | The one who needs fewer guesses | The one whose codes took the most guesses |
| You need | Two screens | Two screens | A sheet of paper or the board game |
Online, Race mode: the same code for both
The server draws a code, the same for both players, and each looks for it on their own screen. The first to find it scores 3 points and starts a 30-second countdown: if the other player finds it within that time, they score 1 point. The game is played over 1, 3, 5, 7 or 10 rounds.
It is the most nerve-racking mode: speed is what counts. It can actually take up to 20 players; see the online multiplayer guide.
Online, Duel mode: a code each
Duel is the online version of the original face-off, with one difference: both players are codemaker and codebreaker at the same time.
- Each one sets a secret code for the opponent.
- Each one looks for the other's code. The server works out the feedback.
- Whoever finds it in fewer guesses wins. With the same number of guesses, time decides.
To start a game, one of you creates a room from the multiplayer page and sends the other the 4-character room code (letters and digits). You do not need an account: a player without one gets a guest label next to their nickname.
On paper or on the board: the original rules
What you need
A Mastermind board game, or simply a sheet of paper. Our printable board provides the guess rows and feedback boxes. Without colored pens, replace the six colors with the digits 1 to 6.
Before you start
Agree with your opponent on three things:
- The size of the code: 4 pegs and 6 colors for the classic rules.
- Duplicates: allowed in the classic rules. For beginners, you can agree to ban them.
- The number of guesses: 10 in the most common classic box.
How a round goes
- The codemaker sets the code and hides it (behind the shield of the board game, or on a folded piece of paper).
- The codebreaker makes a guess.
- The codemaker gives the feedback: one black peg per color in the right place, one white peg per color that is present but misplaced. They can be placed in any order: the feedback must not show which pegs it refers to.
- Repeat until the code is found or the guesses run out.
- Swap roles.
Scoring
Under the board game rules, the codemaker scores one point for each guess the codebreaker makes, plus one extra point if the code is not found. You play an even number of rounds, so each player is codemaker as often as the other. The winner is the player with the most points, that is, the one whose codes took the opponent the most guesses.
Codemaker: giving feedback without mistakes
On paper, everything depends on the codemaker. A single wrong peg makes the code impossible to find and ruins the round. The reliable method has two steps:
- Blacks first. Compare position by position: every position where the color matches is a black. Set those pegs aside in your head, in the code and in the guess.
- Then whites, color by color, on what is left. If the code still has 2 yellows and the guess 1 yellow, that is 1 white. Always take the smaller of the two numbers.
Here is a complete round, with a code that contains a duplicate. The verdicts were checked with the game engine.
- Guess 1 (red, red, blue, blue): no matching position, so 0 black. The code has 1 red, the guess has 2: 1 white. The code has 1 blue, the guess has 2: 1 white. Verdict: 0 black, 2 whites.
- Guess 2 (yellow, yellow, red, green): the yellow in the second position is in place, 1 black. Left in the code: blue, yellow, red; in the guess: yellow, red, green. A yellow and a red in common: 2 whites. Verdict: 1 black, 2 whites.
- Guess 3 (blue, yellow, purple, red): three matching positions, 3 blacks. Left: a yellow in the code and a purple in the guess, nothing in common, 0 white.
- Guess 4: four blacks. The codemaker scores 4 points.
More feedback examples, especially with duplicates, are in the rules guide.
Codemaker: which code to choose?
- Think of duplicates if they are allowed. A codebreaker who assumes, without realizing it, that the four colors are all different will waste guesses on a code such as blue, yellow, yellow, red.
- Do not be predictable from one round to the next. If you always start with your favorite color, your opponent will end up noticing.
- Do not count on an "unbreakable" code. Against a methodical codebreaker, no classic code survives more than five guesses.
Codebreaker: finding it in few guesses
- Assume nothing about the code. Your opponent may have chosen the same color four times just as easily as four different colors.
- Open with two pairs if duplicates are allowed, with four different colors if they are not.
- Check every guess against all the feedback received before playing it.
- On paper, if no code fits any more, a feedback peg was wrong: go back over the verdicts with your opponent, line by line.
Alone in front of your screen?
In solo play, the computer is the codemaker. And if you want to be the codemaker against the machine, the page The computer cracks your code lets you choose a code that the computer looks for while showing its reasoning.
Frequently asked questions
More guides
- Mastermind rules: a complete guide to get started The goal, black and white pegs on real examples, duplicates, the five levels and the game modes.
- Multiplayer Mastermind online: challenge your friends Race and Duel modes, scoring, creating and joining a room, levels and tips to win.
This guide in other languages : 🇪🇸 Español · 🇮🇹 Italiano · 🇩🇪 Deutsch