Guess the Number
I'm thinking of a number. Can you guess it?
About the Game
The computer picks a secret number within the chosen range. Each time you guess, you're told whether the secret number is higher or lower. The range bar narrows with every guess, visually showing you how close you're getting. The optimal strategy is binary search — always guess the midpoint of the remaining range. For 1–100, this guarantees finding the answer in at most 7 guesses.
How to Play
The computer picks a secret number within the chosen range. Enter your guess and press Guess — you'll get a hint telling you whether the secret number is higher or lower than your guess. Use this information to zero in on the answer in as few guesses as possible.
The optimal strategy is binary search: always guess the midpoint of the remaining range. For a 1–100 range, start with 50. If told higher, guess 75 next, and so on. This approach finds any answer in at most 7 guesses. Try Easy, Medium or Hard for different number ranges.