A Guessing Game

You are given 6 attempts to guess a number between 1-100. Each “attempt” can either be a number guess or a range the number could fall in. Responses you could receive are “Correct!”, “My number is lower.”, “My number is higher”, or “My number is within that range”. Describe how you would formulate your guesses so that you are guaranteed to guess the answer in 6 attempts and if it is possible to guess the number in less than 6 attempts.

 

Puzzle Source



Submitted answers will be reviewed and the best will be posted (along with the solution author name) in the solution set as part of the following issue.



Thumbnail Image Provided by Maraya Rodostianos via Flickr

 

Sunjay Bhatia on linkedinSunjay Bhatia on instagramSunjay Bhatia on githubSunjay Bhatia on facebookSunjay Bhatia on email2
Sunjay Bhatia
Lead Editor & Web Developer.
Sunjay Bhatia is a Junior at Tufts majoring in Computer Science and minoring in Philosophy.

Leave a Reply

Your email address will not be published. Required fields are marked *