Daniel Isaacs wrote: > > Suppose in a game of Master Mind with 6 colors and 4 locations, the guess > > RBBG > > yields a response of two white pegs. That is, two colors are right, but > are in the wrong position. Find the number of codes which are still > possible based on this information. > > Good Luck.
Wherever you put the two correct colors, the colors in the other positions can't be the color that was there and can't be one of the wrong colors. There are 8 cases of 4*3, 4 cases of 4*4 and 5*4, and 1 case of 3*3 and 5*5, yielding 274 possibilities.