B Set 38 Logic Puzzle

Mastermind: 6-colors #38

Title
Mastermind: 6-colors #38
CodeType
colors
CodeLength
4
ColorCount
6
Colors
  • Red
  • Blue
  • Green
  • Yellow
  • Purple
  • Orange
SecretCode
  • Green
  • Red
  • Yellow
  • Yellow
Guesses
  • {"guess":["Red","Blue","Green","Yellow"],"blackPegs":1,"whitePegs":2}
  • {"guess":["Blue","Green","Yellow","Purple"],"blackPegs":1,"whitePegs":1}
  • {"guess":["Blue","Red","Yellow","Orange"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Green","Red","Yellow","Blue"],"blackPegs":3,"whitePegs":0}
  • {"guess":["Green","Red","Red","Blue"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Green","Red","Green","Green"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Green","Red","Green","Green"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Purple","Red","Purple","Green"],"blackPegs":1,"whitePegs":1}
Question
Using the 8 guesses and their feedback shown below, deduce the secret 4-peg code. The available colors are: Red, Blue, Green, Yellow, Purple, Orange.
Rules
  • The secret code has exactly 4 positions.
  • Available colors: Red, Blue, Green, Yellow, Purple, Orange. 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.