Click on peg holes to change the color. When you are done, press ok. If you don't know how to play mastermind, here are the rules: https://en.wikipedia.org/wiki/Mastermind_(board_game)#Gameplay_and_rules
If you want to change the number of guesses allowed, just go into the project and change the 'rows' variable. I made this project a few years ago on my alt.