Your goal is to find the secret four-color code. The following colors are possible: black, blue, green, red, white, purple.
Some guesses have already been made. I will provide feedback for each guess made with which it is possible to unambigiously determine the secret code.

Previous Guesses:
Guess: ['green', 'black', 'white', 'purple']. Hint: one color is in the correct position and one color is in the secret code but in the wrong position.
Guess: ['black', 'black', 'blue', 'purple']. Hint: one color is in the correct position and one color is in the secret code but in the wrong position.
Guess: ['red', 'black', 'black', 'white']. Hint: one color is in the correct position and two colors are in the secret code but in the wrong position.
A B C D
white, black, red, blue red, purple, black, red purple, red, red, red white, white, white, white