Mastermind (Code-Breaking Game)
Crack the secret 4-colour code in 10 guesses or fewer.
Advertisement
About this tool
A black peg means one of your colours is the right colour in the right position; a white peg means it's the right colour but the wrong position. The secret code can repeat colours — the peg-counting correctly accounts for that (a common source of bugs in simpler implementations).