In the game of mastermind you need to guess Alexa's four color secret pattern by saying any four color names from red, yellow, green, blue, orange, purple, white and black.
Please note that there can be identical colors in the pattern. For each of your four response Alexa will tell you a number which is either 0 or 1, where 1 means your response is correct at the correct position and 0 which means your response is incorrect.
For example if the secret pattern is red, yellow, blue, red, and you said red, white, blue, red, then Alexa will say 1, 0, 1, 1.
The goal here is to minimize the number of trials to guess the correct pattern. If you are playing for the first time then grabbing a pen and a paper will be handy.