Question: 1 ) Write a Python program for a new game called Guess Your Number. This game is a twist on the Guess My Number game
Write a Python program for a new game called Guess Your Number. This game is a twist on the Guess My Number game where the player and computer switch roles. That is the player hides a number between and inclusive and the computer tries to guess it The computer tells the player its guess, and the player must tell the computer whether the guess is too high, too low, or right on the money. If the guess is correct, the computer congratulates itself and announces how many guesses it took to get it right. If the guess is too high or too low, the computer guesses again.Requirement: You must follow the binary search method detailed in class. This is where your next quess is derived by always picking the mid point between the highest and lowest possible guesses.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
