Your goal is to find the secret four-color code. The following colors are possible: purple, black, white, blue, red, green.
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: ['red', 'black', 'purple', 'green']. Hint: three colors are in the secret code but in the wrong positions.
Guess: ['purple', 'purple', 'white', 'black']. Hint: two colors are in the secret code but in the wrong positions.
Guess: ['black', 'white', 'red', 'black']. Hint: one color is in the correct position and two colors are in the secret code but in the wrong position.
Guess: ['black', 'red', 'black', 'purple']. Hint: two colors are in the correct positions.
A B C D
black, red, green, white white, purple, blue, white green, green, purple, purple white, white, blue, black