B Set 4 Logic Puzzle

Mastermind: 5-colors #4

Title
Mastermind: 5-colors #4
CodeType
colors
CodeLength
4
ColorCount
5
Colors
  • Red
  • Blue
  • Green
  • Yellow
  • Purple
SecretCode
  • Red
  • Green
  • Yellow
  • Green
Guesses
  • {"guess":["Red","Blue","Green","Yellow"],"blackPegs":1,"whitePegs":2}
  • {"guess":["Blue","Green","Yellow","Purple"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Blue","Purple","Yellow","Purple"],"blackPegs":1,"whitePegs":0}
  • {"guess":["Yellow","Purple","Yellow","Purple"],"blackPegs":1,"whitePegs":0}
  • {"guess":["Yellow","Blue","Yellow","Purple"],"blackPegs":1,"whitePegs":0}
  • {"guess":["Yellow","Yellow","Yellow","Yellow"],"blackPegs":1,"whitePegs":0}
  • {"guess":["Yellow","Yellow","Yellow","Yellow"],"blackPegs":1,"whitePegs":0}
Question
Using the 7 guesses and their feedback shown below, deduce the secret 4-peg code. The available colors are: Red, Blue, Green, Yellow, Purple.
Rules
  • The secret code has exactly 4 positions.
  • Available colors: Red, Blue, Green, Yellow, Purple. Repetition is allowed.
  • Black peg (●): correct color/digit in the correct position.
  • White peg (○): correct color/digit but in the wrong position.
  • The number of pegs does not indicate WHICH positions are correct.
Hint
Use process of elimination: identify which colors are in the code, then find their positions.