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