Can colors repeat in the code?
It depends on the settings. Some versions allow repeats, others do not.
What does a black peg mean?
Correct color in the correct position.
What does a white peg mean?
Correct color but wrong position.
How many guesses do I get?
Usually eight to twelve, depending on difficulty.
Is Mastermind a logic game?
Yes, it is a classic exercise in deduction and hypothesis testing.

