Mastermind

Choose difficulty

Mastermind Game Introduction

Mastermind is the classic code-breaking game: one side sets a secret color sequence, the other guesses within a limited number of tries. Each guess earns feedback โ€” black pegs for correct color and position, white pegs for correct color in the wrong spot.

Use each round's feedback to eliminate and adjust until you deduce the exact code. Excellent training in inductive reasoning and logical elimination.

How to Play Mastermind

Fill a row with colors and submit; then adjust using the pegs โ€” black for right color and spot, white for right color wrong spot, none for colors not in the code. Crack it within the limit to win.

Controls

Features

Tips & Tricks

  1. Open with repeated or similar colors to learn which are in the code.
  2. Fix confirmed positions and adjust the rest one by one.
  3. A white peg means the color exists โ€” try it in other spots.
  4. Cross out impossible arrangements from earlier rounds to narrow the search.

FAQ

Mastermind How do I play it?

Guess the color code, guided by black and white pegs, within the allowed tries.

What do black and white pegs mean?

Black = right color, right spot; white = right color, wrong spot.

Is the game free?

Completely free โ€” play in your browser.

How many guesses do I get?

Tries depend on the settings โ€” usually 8โ€“12.