B Set 41 Logic Puzzle

Mastermind: 6-colors #41

Title
Mastermind: 6-colors #41
CodeType
colors
CodeLength
4
ColorCount
6
Colors
  • Red
  • Blue
  • Green
  • Yellow
  • Purple
  • Orange
SecretCode
  • Green
  • Blue
  • Green
  • Red
Guesses
  • {"guess":["Red","Blue","Green","Yellow"],"blackPegs":2,"whitePegs":1}
  • {"guess":["Blue","Green","Yellow","Purple"],"blackPegs":0,"whitePegs":2}
  • {"guess":["Yellow","Red","Green","Red"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Yellow","Red","Yellow","Purple"],"blackPegs":0,"whitePegs":1}
  • {"guess":["Orange","Orange","Green","Purple"],"blackPegs":1,"whitePegs":0}
  • {"guess":["Green","Orange","Green","Purple"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Green","Orange","Green","Purple"],"blackPegs":2,"whitePegs":0}
  • {"guess":["Green","Blue","Blue","Purple"],"blackPegs":2,"whitePegs":0}
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.