in reply to Updates to a guessing number script
As it's been said, dividing the range in the middle is the optimum strategy here. This way, the high/low question will yield maximum information. Read also the article on Binary search.