Mastermind

Play the classic Mastermind code-breaking game online for free. Crack the secret color code in 10 tries. Choose from Easy or Hard mode. No downloads, no signups — just pure logic fun.

Game Mode:
Try 1 of 10

Rules

Black peg = correct color in correct position. White peg = correct color in wrong position.

Statistics

Wins 0
Losses 0
Current Streak 0
Best Streak 0

About Mastermind

Mastermind is a classic code-breaking game invented in 1970. The goal is to guess a hidden color code in a limited number of attempts. After each guess, you receive feedback in the form of black and white pegs that help you narrow down the solution.

Features

Frequently Asked Questions

What does a black peg mean?

A black peg means one of your guessed colors is both the correct color AND in the correct position.

What does a white peg mean?

A white peg means one of your guessed colors is correct but it is in the WRONG position.

How many guesses do I get?

You have 10 attempts to guess the correct 4-color code.

What is the difference between Easy and Hard mode?

In Easy mode, the secret code uses 4 different colors with no repeats. In Hard mode, colors can be repeated, making it much more challenging.