Number Guessing Game
The game picks a secret number in a range you choose. Enter a guess and it tells you whether the number is higher or lower — keep narrowing it down until you find it.
Loading the game…
How to play
Pick a range (for example 1–100) before you start; a number inside that range is chosen at random.
Type a guess and submit it. The game replies with “Higher” or “Lower” to tell you which direction to try next.
Your attempt count increases with every guess, so you can see how efficiently you found the number.
Guessing the exact number ends the round and shows your total number of attempts.
Tips
- A binary-search approach — always guessing the midpoint of the remaining possible range — finds any number in the fewest guesses on average.
- Keep a mental note of the highest “too low” guess and lowest “too high” guess so far; the answer is always between them.
- A wider range needs more guesses on average — pick a smaller range if you want a faster round.
Frequently asked questions
Can I change the number range?
Yes, the range is adjustable before each new game.
Is the number generated fairly?
Yes, it's generated using your browser's random number generator each time you start a new game.
Is there a limit on guesses?
No — you can take as many guesses as you need; your attempt count is just there for you to track.
You might also like
View all games or .