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