How to play Mastermind
- The computer hides a code: a row of 4 coloured pegs (5 on Hard).
- Tap colours to make your guess, then press Check.
- Read the pins next to your guess and use them for the next one.
- Break the code in ten guesses or fewer.
The rules: what the pins mean
- A black pin: one of your pegs is the right colour in the right place.
- A white pin: one of your pegs is the right colour but in the wrong place.
- No pin: that colour is not in the code (or not that many times).
- The pins do not say which peg they belong to – that is the puzzle.
Levels
- Easy: 4 pegs, 6 colours.
- Medium: 4 pegs, 8 colours.
- Hard: 5 pegs, 8 colours.
- Switch off Colours can repeat for an easier code where every colour appears once.
Strategy tips
- Start with two colours, two of each: the pins tell you a lot at once.
- Change one thing at a time and watch how the pins change.
- Every code of 4 pegs and 6 colours can be broken in five guesses – with practice.
Free, in your browser
No download, no app, no account. It runs on this page, on a phone, a tablet or a computer, and the codes you broke and your best stay on your device.
More games in your browser
- Solitaire
- Spider Solitaire
- FreeCell
- Word Search
- Typing Test
- Sudoku Online
- Minesweeper Online
- 2048 Game
- Memory Game Online
- Snake Game
- Tic Tac Toe
- Claim Grid
- Stop the Wheel
- Chess Online
- Word Scramble
- CPS Test
- Reaction Time Test
- Aim Trainer
- Reversi Online
- Tower of Hanoi
- Sliding Puzzle
- Simon Game Online
- Pong Online
- Shut the Box
- Mancala Online
- Lights Out Game
- Peg Solitaire Online
- Whack-a-Mole Online
