← Back to the game

Playing Mastermind with two players: online (Race, Duel) and on paper

In short
  • 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.

🔮 Play with a friend

Three ways to play with two

Race (online)Duel (online)Paper or board
Who sets the code?The serverEach player, for the otherThe codemaker
Who gives feedback?The serverThe serverThe codemaker
Who wins?The first to find itThe one who needs fewer guessesThe one whose codes took the most guesses
You needTwo screensTwo screensA 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.

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:

How a round goes

  1. The codemaker sets the code and hides it (behind the shield of the board game, or on a folded piece of paper).
  2. The codebreaker makes a guess.
  3. 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.
  4. Repeat until the code is found or the guesses run out.
  5. 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:

  1. 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.
  2. 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.

More feedback examples, especially with duplicates, are in the rules guide.

Codemaker: which code to choose?

Codebreaker: finding it in few guesses

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

Play now

More guides

This guide in other languages : 🇪🇸 Español · 🇮🇹 Italiano · 🇩🇪 Deutsch