Mastermind

Crack the secret code of four colored pegs before you run out of guesses.

How to play

You have 10 guesses. After each one you get feedback pegs: a black peg means one peg is the right color in the right spot. A white peg means one is the right color in the wrong spot. The feedback doesn't say which pegs they refer to.