Twelve rows, four holes and a code you will crack
Your first guess earns one black peg and one white. Your second, two whites. By the fourth row you are sure the yellow belongs in the third hole, and by the fifth you are certain of the order. You push the pegs in, your opponent lifts the shield, and the code matches. Mastermind is a small plastic proof that logic beats luck.
Mordecai Meirowitz, an Israeli postmaster and telecommunications expert, invented Mastermind in 1970, adapting an older pencil-and-paper game called Bulls and Cows. The British company Invicta Plastics bought the rights and released it in 1971, and the box with a man in a suit and a mysterious woman on the cover sold more than 50 million copies across 80 countries. Today Hasbro and Pressman keep it in print. It is for two players from eight upwards, anyone who likes logic puzzles and wants one that fits in a coat pocket.
One player, the codemaker, hides a row of four coloured pegs chosen from six colours behind a shield. The other, the codebreaker, places a guess in the first row. The codemaker answers with small key pegs: a black for each peg that is the right colour in the right place, a white for each right colour in the wrong place, nothing for misses. Guess again, using what you learned. There are 1,296 possible codes, and the breaker has between ten and twelve rows, depending on the edition, to find the one.
Good players learn to sacrifice a row to gain information rather than just hoping for the right colours.
A round takes three to five minutes and a match, swapping roles, fifteen to twenty. It is quiet and absorbing. The codebreaker leans over the board, muttering, while the codemaker checks each answer twice, because one wrong key peg ruins the round. The signature moment arrives around row four: you have collected three blacks and know only one peg is wrong, and you must choose a guess that tests two hypotheses at once. Good players learn to sacrifice a row to gain information rather than just hoping.
The weakness is the codemaker's role. Their only job is to answer, so half the game is administration; for a child that can be a lesson in patience, for an adult it is dull. In 1977 the computer scientist Donald Knuth proved that every code can be broken in five guesses or fewer, which tells you how finite the puzzle is. Once you learn a systematic method, games become routine. Cheap editions have tiny pegs that roll under sofas. At around €18 it is affordable, but buy a version with a sturdy board.
Still, few games teach deduction as cleanly. It is a hands-on lesson in hypothesis testing that teachers have used for fifty years, and harder variants, five pegs, eight colours, allowed blanks, give it a longer life. Its descendants are everywhere, from Wordle to logic apps. As a quiet duel between a parent and a child, or a five-minute puzzle at a café, Mastermind remains the original code-breaking game.
A fine first logic game for children from eight and puzzle-minded adults. Buy a sturdy edition, try the advanced five-peg version once the basics feel solved, and do not expect it to fill a whole evening.
Played it? Be the first to review this game.
- Black and white feedback pegs teach real hypothesis testing in three to five minutes
- Fits in a coat pocket and needs nothing but two players and a quiet table
- Harder variants, five pegs or eight colours, extend the puzzle well past the basics
- Codemaker role is mostly administration, dull for an adult after a few rounds
- Proven solvable within five guesses, so a systematic method makes it routine
The Fine Tabletop editors' assessment, not user reviews; not counted in any rating.
Make your own card battle game in the Studio: pick a world and two balanced decks, put your photos on the cards, play it here, print it at home.
Open the Studio











