next up previous
Next: Reproduction Up: l3 Previous: Common Operators

Example - MASTERMIND

Opponent thinks up a five-color sequence:

R Y B W B

You make guesses, and the opponent tells you

1) How many colors are correct

2) How many colors are in right position

           R R R B B     3 correct, 2 in position
           R Y Y B B     4 correct, 3 in position
           R Y B B B     4 correct, 4 in position
           R Y B W B     SOLVED!!!