When the green flag is clicked, the program chooses a random number between 1 and 10. Then, the player has three chances to guess the number. If their answer is incorrect, the program tells them if it is too high or too low. If their answer is correct, the program displays a win screen. If they incorrectly guess three times, they are shown a lose screen. Extensions: 1. The game should start on the title screen and wait until the player presses the space bar to start the game. 2. After the title screen, the difficulty option screen should appear with three buttons. The player will select a difficulty by clicking on a button. When any button is clicked, all of the buttons disappear, and the game starts. The easy level chooses a number between 1-10, the medium between 1-20, and the hard between 1-50.
I have made a few choices in my program to both put my little spin on this challenge and troubleshoot problems in my programming. This involves waiting three seconds if you answer incorrectly, then allowing you to answer again, and waiting three seconds for the lose screen to appear after you have answered incorrectly three times. However, everything works as intended and follows the basic guideline above.