index

Mastermind



Guess the sequence of four colored pegs the computer has randomly selected from the colors at the right.

First click on which colors you want to play with. (The default set contains blue, green, red and yellow). Clicking on a color in the field on the right will toggle the circle around it on/off, indicating whether it will be part of the set the computer draws from. Then press 'Start' to begin.

You start filling the bottom row with pegs, and each time you have filled all four holes the computer will respond by giving you one peg for each correct color.
1 - black if a color was in the right place
2 - white if a color was right but in the wrong place
You will not be told which of the colors were correct. That part you will have to figure out for yourself.

After your 8th incorrect guess, the computer will reveal the sequence to you and the game ends.
In case you wish to start over, just press 'End' to discontinue the game.

Credit goes to Karl Hörnell for this game.