Mastermind

A code-breaking game

How to Play More Math Games


Your browser does not support the canvas element.



Your browser does not support the canvas element.

How to Play

Setup

You are a code breaker.
The code consists of 4 blocks, in sequence.
Each block is one of 6 possible colors.
A given color might appear once, several times, or not at all.

Gameplay

Click the colored buttons to select a sequence of colors, then submit your guess.

  • A black dot means you guessed a correct color in the correct position

  • A white dot means you guessed a correct color in the wrong position

  • Four black dots mean you have guessed 4 correct colors in the correct positions and you win the game

  • If you make 12 guesses without earning 4 black dots, you run out of time and lose the game

Learn More

We build and explore math and technology projects like this during our summer camps, afterschool classes and Saturday workshops.