Mastermind

Crack the secret 4-color code.

Black Peg: Right color, right spot.
White Peg: Right color, wrong spot.