🔴 Mastermind

Crack the hidden four-colour code in ten guesses using the feedback.

GUESS 0/10BEST —

How to play Mastermind

  1. Press a colour to drop it into the next slot; fill all four slots.
  2. Press Submit to score your guess.
  3. A filled peg means a right colour in the right place; a hollow peg means a right colour in the wrong place.
  4. Use the feedback to deduce the code and crack it within ten guesses.

Controls

Controls for Mastermind
InputAction
Colour button / 1-6Add that colour to the guess
Submit / EnterScore the guess
Delete / BackspaceRemove the last peg
Ctrl+FEnter or leave full screen

Tips & strategy

  • Start with a guess of four different colours to learn which ones are in the code.
  • A peg count tells you how many are right, not which — change one thing at a time to pin them down.
  • Remember colours can repeat; a low peg count early often means a doubled colour.
  • Track what each guess rules out; the code is always deducible in a few smart tries.

Frequently asked questions

What do the feedback pegs mean?

A solid peg means a colour is correct and in the right position; a hollow peg means the colour is in the code but in a different spot.

Can colours repeat in the code?

Yes — the hidden code can contain the same colour more than once, which is part of the challenge.

How is my score tracked?

Your record is the fewest guesses used to crack a code.