Mastermind
Crack the secret color code. Black peg = right color, right spot. White peg = right color, wrong spot.
Last updated
About this game
The computer picks a hidden sequence of colors. Each guess gets scored with two kinds of pegs: a black peg for every color you placed in exactly the right position, and a white peg for every color you guessed that's in the code but in the wrong spot — counted so each secret and guessed peg contributes to at most one feedback peg, the standard Mastermind scoring rule. Position of the feedback pegs doesn't correspond to position in your guess; only the counts of black and white matter.
Click a slot to cycle through colors (or tap a palette swatch, then a slot). Everything runs locally in your browser — the code is generated and checked in JavaScript, nothing is sent anywhere.