When you play Mastermind you are tasked with decoding the color code on the board. Depending on your preference the code can be 3 colors up to 8 colors. When you attempt to crack the code you are provided peg hints to solve. Black Peg - You have chosen the correct color in the correct position. White Peg - You have chosen the correct color, but it is in the wrong position.