← Home

Learn Mastermind in 2 minutes

A guided game to learn by playing: three explained guesses, then you find the code yourself. Nothing is saved, so you can start over as often as you like.

Mastermind rules in a nutshell

A secret code is hidden: a row of colored pegs, in a set order. You make a guess, and the game answers with feedback pegs.

You win when all the feedback pegs are black. In the online game, you get 12 guesses to get there.

The mistake to avoid

The feedback pegs are always shown in the same order, black first, then white. They are not lined up with your pegs: a black peg in the first slot does not mean your first peg is right. Comparing several guesses is how you work out which peg earned which feedback.

After the tutorial

The tutorial is played on the Easy level: 4 pegs, 6 colors, all different in the code. From the Classic level on, a color can appear more than once, and the higher levels add colors, then a fifth peg.

Start a game of Mastermind to put it all into practice. To see a method at work, watch the computer crack your code, and keep the solver at hand to check your deductions.