All Tools

Number Guessing Game

Guess the number the computer is thinking! Use higher/lower hints in this classic game.

Number Guessing Game

Try to guess the number the computer is thinking of!
Use the hints to determine if you need to go higher or lower.

Select Difficulty

What is Number Guessing Game?

Number Guessing (Higher or Lower) is a classic deduction game where you try to find the number the computer is thinking of using UP/DOWN hints. After each guess, you are told whether the target is higher or lower, allowing you to narrow down the range. Using a binary search strategy, you can find any number in a 1-100 range in at most 7 attempts, and in a 1-1000 range in at most 10 attempts. Try three difficulty levels: Easy, Normal, and Hard.

Difficulty Levels

DifficultyRangeOptimal Attempts
Easy1-50Max 6
Normal1-100Max 7
Hard1-1000Max 10

Strategy Tips (Binary Search)

  • Always choose the middle value of the current range
  • Example: 1-100 start, guess 50, if Higher then range becomes 51-100
  • Each guess cuts the range in half for fast convergence
  • Check the history to track your previous guesses and hints

Frequently Asked Questions

What is binary search?

Binary search is an algorithm that selects the middle value to halve the search range each time. Starting from 1-100, you guess 50, then 25 or 75, narrowing down until you find the answer in at most 7 guesses.

Can I win by guessing randomly?

Technically yes, but the probability is very low - just 1% in a 100-number range. Using binary search guarantees finding the answer within 7 attempts.

Are my game records saved?

Only the current game guess history is displayed on screen. Starting a new game resets the history. Challenge yourself to find the number in the fewest attempts!

Related Tools