Mastermind

The computer will randomly select four coloured pegs from those shown. It may use the same colour more than once. The object of the game is for you to guess the sequence of the four coloured pegs the computer has selected.

Start with the holes at the bottom of the grid. Place the coloured pegs in these holes. Each time you have completed a guess (i.e. filled all four holes) the computer will mark your guess. You get a black mark for a correct peg in the correct hole, and a white mark for a correct peg in the wrong hole. The number of marks tells you how many correct pegs you have guessed.

If you haven't managed to guess the sequence by your 8th guess, the computer will reveal it to you and the game ends.