This is Mastermind, a classic game. Click on one of the colors in the palate then select where you would like to place it, if you accidentally click on the wrong color, you can click the "Garbage" button to pick a new color, however, once a peg is placed it can't be moved. Once all 4 pieces are placed it will show you how you did. If the piece is the correct color but in the wrong place you will see a red dot, if the piece is both in the right place and the right color you will see a white dot, and if it's neither you will see a black outline. These dots are displayed in a random order. You have ten guesses to guess the correct sequence of colors. How few of these guesses do you need?
Text engine is adapted from Griffpatch's text engine. All other work is mine. This was difficult to play test so if you find a bug please let me know.