🔢 Number Guessing Game
Guess a hidden number using higher and lower hints, with easy, medium, hard and fully custom difficulty settings.
Choose Difficulty
Pick a difficulty level and start guessing!
How to play
A random number is picked within the chosen range.
Enter your guess and hit Guess!
You'll be told if your guess is Too High or Too Low.
Find the number before your attempts run out to win!
Range
–
Attempts left
Time
Guess a number between and
( possibilities remaining)
Press Enter to guess
Guess History
You Got It!
The number was . Nice work!
Guesses
Time
Score
Related Tools
Tic Tac Toe
Play tic tac toe against a friend or a computer opponent with easy, medium and unbeatable hard difficulty.
Memory Match Game
Flip and match emoji card pairs across three grid sizes and eight themes, with move counter, timer and star rating.
Word Scramble
Scramble text letter by letter with three modes, including one that keeps each word's first and last letter in place.
decision maker wheel game
Add your options, spin the wheel, and let an even-chance draw settle a small decision for you.
The rules and the mathematics of guessing
The optimal strategy is binary search. Always guess the midpoint of the range that remains possible, because that response eliminates half of the remaining candidates whichever answer you get. Guessing anywhere else means one of the two possible answers leaves you with more than half still to search.
That gives a precise bound on how many guesses you need: the ceiling of log2 of the number of candidates. For 50 candidates that is 6, for 100 it is 7, and for 200 it is 8. Compare those against the attempt limits and something interesting emerges: Easy and Medium are always winnable with perfect play, since 10 and 7 attempts meet or exceed what is needed. Hard gives 5 attempts against a 200-number range, where 8 would be required to guarantee a win, so Hard demands luck as well as method.
Worked example: finding 73 on Medium
Guess 1 is the midpoint, 50. The game says too low, so the range narrows to 51 to 100. Guess 2 is the midpoint of that, 75. Too high, so the range becomes 51 to 74. Guess 3 is 62, the midpoint of the 24 remaining candidates. Too low, narrowing to 63 to 74. Guess 4 is 68. Too low, narrowing to 69 to 74. Guess 5 is 71. Too low, narrowing to 72 to 74. Guess 6 is 73, and that is the answer.
Six guesses, one inside the seven allowed. Notice how each step roughly halved the field: 100 candidates, then 50, 24, 12, 6, 3, 1.
Contrast that with guessing from the bottom upward. Starting at 10 and stepping by 10 would reach 70 on the seventh guess without having found the number, and the round would be over. Even a reasonable-sounding opening guess of 25 wastes part of an attempt, because a too-low answer leaves 75 candidates rather than 50.
Improving your score and using the custom mode
The most common mistake is forgetting that the hints are cumulative. If 50 was too low and 75 was too high, the answer lies strictly between 51 and 74; guessing 40 at that point wastes an attempt on a number already ruled out. Keeping an eye on the guess history prevents this.
Custom mode is where the game becomes a teaching aid. The number of guesses needed is the ceiling of log2 of the range size, so 1 to 1,000 needs 10 and 1 to 1,000,000 needs 20. Setting a wide range with exactly that many attempts makes the point that halving is extraordinarily powerful, and that a linear search is hopeless by comparison.
Best scores are recorded per preset difficulty in your browser's local storage, so they persist on the same device but are not saved to any account.