taylorray95 / guess-the-number Goto Github PK
View Code? Open in Web Editor NEWGuess The Number is a number guessing game that sets a random number between 1 - 1000. The user is prompted to guess a number. Then the user will click the button to check if they guessed the correct number. If the guess is closer than the previous guess the text box will turn red. If the guess is further away than the user's previous guess then the text box will turn blue. The program will also tell the user if the guess was too low or too high and the number of guesses is tallied and printed onto the screen for each guess. If however the guess is correct then the screens background will change to green, the text box will be disabled, and a message box appears for the user notifying them of their correct guess.