← All games
🔐

Mastermind — logical reasoning

▶ Start playing

Free · no sign-up · on phone and computer

💡Benefits

Mastermind is the famous code-breaking game invented by Mordecai Meirowitz in 1970 and one of the finest exercises in deductive logic. After every attempt the child forms a hypothesis from the feedback pegs, tests it, and eliminates wrong candidates one by one.

It is a miniature model of the scientific method: guess → test → conclude. Working memory gets a workout too, since clues from earlier attempts must be held in mind and every new guess built so that it contradicts none of them.

🎮How to play

The computer hides a colour code — crack it within 10 attempts.

  1. Pick colours from the palette, fill the slots and press Submit.
  2. Read the feedback: a black dot means right colour in the right place; a white dot means the colour exists but sits elsewhere.
  3. Use those clues to shape the next guess and narrow the code down step by step.
  4. Higher levels lengthen the code (4 to 5 slots) and allow repeated colours.

If 10 attempts run out, the code is revealed — aim to squeeze at least one new fact out of every guess.

📚Scientific sources

  1. Diamond (2013). Executive functions. Annual Review of Psychology, 64, 135–168. https://scholar.google.com/scholar?q=Executive+functions+Diamond+2013+Annual+Review+of+Psychology

❓Frequently asked questions

Yes, cracking the hidden code on MentalMath is completely free and needs no registration.
Deducing the code from the clues after each guess strengthens deductive logic and the ability to draw conclusions.
Recommended from age 8, since analysing the clues calls for slightly more mature reasoning.
Yes, choosing colours or digits and entering the code is easy on both phone and tablet.
A few times a week for 10-15 minutes noticeably sharpens logical deduction.
Start playing 🚀

Other games

🧮 See the mental arithmetic lessons too