Mastermind

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

Current Streak Best Streak

Available Colors

Your Guess

Black peg = correct color & position
White peg = correct color, wrong position

About Mastermind

Mastermind is a classic code-breaking logic game invented in 1970. The goal is to guess a hidden sequence of colors within a limited number of attempts. After each guess, the game provides feedback: black pegs indicate correct colors in correct positions, while white pegs indicate correct colors in wrong positions. Use logic and deduction to crack the code!

Features

Frequently Asked Questions

How do I play Mastermind?

Select 4 colors from the palette and click "Submit Guess". The game will show black pegs for correct colors in correct positions and white pegs for correct colors in wrong positions. Use this feedback to deduce the secret code within 10 attempts.

What is the difference between Easy and Hard mode?

In Easy mode, the secret code contains 4 unique colors (no duplicates). In Hard mode, colors can repeat in the code, making it significantly more challenging.

Is Mastermind good for brain training?

Absolutely! Mastermind is excellent for developing logical thinking, pattern recognition, and deductive reasoning skills. It is a fun way to exercise your brain.