Mastermind is a game of logic. The goal is to guess the code hidden at the top. You get the results in the form of red and white pins. Red means one of the colors in your guess matches exactly with the code. White means the color is in the code, but in the wrond spot. However, you don't know what pins correspond with yourguess.