Toolstia / Number guessing game
number guessing game
The computer picks a secret number and you guess it. Each guess tells you whether to go higher or lower, with optional hot and cold hints. Try to win in as few guesses as possible.
A smart strategy is to always guess the middle of the remaining range. That finds any number from 1 to 100 in at most 7 guesses.
How it works
- Pick a range.
- Type a guess and press Guess.
- Use the hints until you find the number.
Ranges
Choose 1 to 10, 1 to 100 or 1 to 1000. A new secret number is chosen each game.
Hot and cold
Hints say whether you are very close, getting warmer or far away. Turn them off for a harder game.
Best strategy
Guess the middle of what is left each time. This halves the choices and finds any number from 1 to 100 in at most 7 guesses.
Giving up
Press Give up to see the number, or New game to start over.
Questions
Is the number really random?
It uses your browser random number generator.
How many guesses is good?
Under 7 for 1 to 100 is excellent.
Is my progress stored?
Everything happens in your browser, and nothing you enter is sent anywhere.