1. ## A guessing game

I have an assignment to write a number guessing game. That I think I can do, but there's a catch. The assignment reads..

With each good guess out of 10 the player should be able to eliminate half of the numbers. Show why any number from 1 to 1000 can be guessed in 10 or fewer tries.

Can someone explain?

2. do a websearch or a board search for "binary search".

All will be revealed to you. Think about it first. How could you do it. And you can in your head quite easily.

3. what about if on the first error you give them an idea as to how much off they approximately are?

4. nope just a simple its this way and not that way

5. Originally posted by zbap
what about if on the first error you give them an idea as to how much off they approximately are?
Then they could simply add (or subtract) the number given to their number and find the answer.

6. Hey lyanette, think of it this way. If I said pick a number between 1 and 1000, what number would YOU pick? Why would you pick that number? If I said that number was too low, what number would you pick next? Why did you pick that one? Keep going. That should answer your question.