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