Figure out the code in as few turns as possible.
A secret code of four code pegs are automatically generated. The code can be made of any combination of colors, including using two or more of the same color.
The player places four code pegs in the 1st row of holes attempting to duplicate the exact colors and positions of the secret code.
Hit "Check Answer", and scoring pegs will be automatically placed in the scoring holes on the 1st row as follows:
- A black scoring peg for each code peg that's the right color and in the right position.
- A white scoring peg for each code peg that's the right color, but not in the right position.
- No scoring pegs indicate a color is not used in the code.
The scoring pegs are not placed in any particular order. It's part of the challenge for the player to figure out which scoring pegs correspond to which code pegs. The player should remember that one scoring peg corresponds to one code peg and a black scoring peg takes precedence over a white one.
The player places another set of code pegs in the second row and hits "Check Answer" again. The pegs played in each row are left in position until the secret code is broken.
The player keeps placing rows of code pegs and keeps getting scored until he guesses the code exactly. When this happens, the player wins.
If all 10 rows are used and the code has not been broken, the player loses.