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