About Number Guessing Game
Number Guessing Game is a free game: find the secret number in as few guesses as possible using higher and lower hints.
The computer picks a secret whole number and you try to guess it. After every guess you are told whether the secret number is higher or lower, so you can narrow it down.
Choose a range: 1 to 10, 1 to 100 or 1 to 1000. With the best strategy, half the range at every guess, you can always find a number from 1 to 100 in at most 7 guesses. Your fewest guesses for each range are saved in your browser.
How to play Number Guessing Game
- Choose a range: 1 to 10, 1 to 100 or 1 to 1000.
- Type a whole number and press Guess, or press Enter.
- You are told if the secret number is higher or lower than your guess.
- Keep guessing until you find the number. The game counts your guesses.
- Your fewest guesses for each range are saved. Press New game to play again.
Number Guessing Game tips and strategy
- Start in the middle, for example 50 in a range of 1 to 100.
- Halve the possible range with every guess. This is a binary search and never needs more than 7 guesses for 1 to 100.
- Use the guesses so far to work out the smallest and largest numbers still possible.
- In 1 to 10, start with 5 and you will always finish in 4 guesses or fewer.
- If the range left is small, check the numbers one by one.
Frequently asked questions
What is the best strategy?
Always guess the middle of the numbers that are still possible. Each guess cuts the possibilities in half.
How many guesses do I need for 1 to 100?
At most 7 with the halving strategy, because 2 to the power of 7 is 128, which is more than 100.
How many guesses for 1 to 1000?
At most 10, because 2 to the power of 10 is 1024.
Is the number picked fairly?
Yes. Every number in the range has the same chance of being chosen.
Are my best scores saved?
Yes. Your fewest guesses for each range are saved in your browser on this device.
Can I change the range?
Yes. Pick a different range at any time and a new game starts.
Is it free?
Yes. It is free in your browser with no download or account.