Mastermind

Crack the color code in minimal tries. A free logic puzzle and brain game to play online and climb the leaderboard. No download or sign-up, on phone, tablet or computer.

How to play Mastermind

Goal: Crack the hidden colour code in as few rows as you can.

Tap colours to fill the current row at the bottom of the board (tap a peg to clear it), then press Check. A solid green dot means a peg of the right colour in the right place; an amber ring means a right colour in the wrong place. The dots don't say which peg they mean. Tap an earlier row to copy it into the current one. Long-press a colour (right-click with a mouse) to cross it out as a note to yourself. Keyboard: 1-8 pick a colour, Shift+1-8 crosses one out, Backspace clears the last peg, Enter checks.

There is no row limit: keep guessing until you crack it, or press Give up to see the code. Easy: 3 pegs from 6 colours. Medium: 4 pegs from 6 colours. Hard: 5 pegs from 8 colours. In Settings, choose what the code may have: repeated colours (on by default on Medium and Hard) and empty places (pick the dashed empty button, or press 0, to leave a place empty). Each makes the code harder. Colour symbols (in Settings) put a shape on each colour, for players who find some colours hard to tell apart. The rows you needed go on the leaderboard.

More logic & math games