This is modeled after a board games from the '70's. The goal is to guess the five colors of "pegs." There are 8 colors to choose from (green, purple, teal, red, yellow, blue, orange and pink) and a color can occur multiple times in the answer (i.e. the order could be yellow, red, green, pink, red or green, green, green, green, green). In order to make logical guesses you are given hints in the form of black and white "pegs". Once you change the color of the ladybugs to your guess you click the "Guess" button. For each peg you guess correctly - right color in the right column you'll receive a black peg. For each color you guess correctly but is in the wrong column you get a white peg. The difficult part is you have to figure out which is which. The black and white pegs DO NOT CORRESPOND to the location of the pegs. This is only a way to tell you how many you have correct, not the location. That is what you have to figure out. Your next guess will give you another hint until you logically figure out all the colors of the pegs. If you receive no black or white pegs then you didn't guess anything correctly in that turn. The arrow will indicate which row you are currently using for your guess. You can only change the pegs in this row. To change the color either continue to click on the "hole" until it changes to the color you want, or you can find the color ladybug in the grass and click on that you choose that specific color, then click on the location to change it. Then click the "Guess" button and you'll see the hint pegs. Once you get the answer, run out of guesses or give up, the answer will be revealed.
I first wrote MasterMind in collage in pascal. Then years later in VisualBasic, then Android and now Scratch. It is my go to for learning a new skill.