Level.Farm Try the code

Free Classic · rules

Mastermindcode breaker

Four pegs, six colours, ten tries. Mastermind is a game of pure deduction — and it has been proven that any combination can be found in five guesses at most.

Goal of the game

Find the secret combination of four coloured pegs, in the right order, in as few guesses as possible.

After each guess you get clues — but without knowing which positions they refer to. That is the whole difficulty.

Reading the clues

The best opening

The elimination method

The mistakes that cost the most

Controls

Keyboard and mouse

Touch screen

Frequently asked questions

What do the black and white pegs mean?

Black: right colour, right place. White: right colour, wrong place. Neither tells you which peg it matches.

Can a colour appear more than once?

Yes, unless you play in no-repeat mode. Assuming four different colours is one of the most common mistakes.

What is the best first guess?

Two colours repeated twice each, for example red red blue blue. It brings more information than a combination of four different colours.

In how many guesses can you always win?

Five. It has been proven that with four pegs and six colours, an optimal strategy finds any code in five guesses at most.

What if a guess earns no clue at all?

That is excellent news: the four colours you played are absent from the code. You have just eliminated a large share of the possibilities in one go.

Play Mastermind

More classics, free as well