Question: Problem 1 (33 Points): Develop new widget Game that implements a number guessing game. When started, a secret random number between 0 and 9 is
Problem 1 (33 Points): Develop new widget Game that implements a number guessing game. When started, a secret random number between 0 and 9 is chosen. The user is then requested to enter number guesses. Your GUI should have an Entry widget for the user to type the number guess and a Button widget to enter the guess. A text box in the upper right-hand corner shows how many guesses you've taken in the current game and how many games you've played. The game should automatically restart after each round. Hint: How to change the text of a label: self.lbl.configltext-"Some text") tk You have made 0 guesses this game. You have completed 0 games Enter your guess: Enter tk You have made 2 guesses this game. You have completed 0 games Enter your guess: Enter Enter You got it Once you guessed it the text box clears and increments the games played count by 1: Enter your gues Enter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
