The game principal is well known: Behind a cover there is a secret code consisting of four colors. To detect it you need a little bit luck and good combinational skill.
By multiple clicking with the mouse you set four colored token in the first row. When you have finished the row and submit it, the first trial will be rated: For every correctly set color you get a black pin, for every right color on the wrong position you get a white one.
So you know, how many correct colors you've found, but not which colors and on which position! By repeated trying and combining using the rating you can resolve the code.
But attention: You have only ten trials!