Break the problem in
This is an HTML5 implementation of the classic MasterMind game. The computer has randomly created a code.
Your mission is to determine the code by assigning a color to each of the four large circles on the first row.
First select a color from the column on the right.
Then select the position to which you would like to assign that color.
The colors do not have to be unique
green is a valid combination.
When you are ready to see how you did at assigning colors, select Test Guess.
Your score will appear in the small circles to the right of the row.
A black score means that a color is correct and in the correct position.
A white score means that a color is correct, but in the wrong position.