Number Guessing Game
In this number guessing game, a secret number is hidden on a ruler. Make a guess, read the clue and close in on it. Some clues tell you the side, some only tell you how near you are, and one may be a lie.
How to play
- Drag the red marker along the ruler, use the arrows or type a number.
- Press Guess and read the answer.
- Keep guessing until you have it. Fewer guesses mean more stars.
After each game you can see what every guess was worth: how many numbers were left before it, how many after it, and which guess would have been better.
The best first guess from 1 to 100
Guess 50. Whatever the answer is, half of the numbers are gone. Then take the middle of what is left, and go on like this. With higher or lower clues, you never need more than 7 guesses for 1 to 100.

| Numbers | Guesses you need at most |
|---|---|
| 1 to 10 | 4 |
| 1 to 50 | 6 |
| 1 to 100 | 7 |
| 1 to 500 | 9 |
| 1 to 1,000 | 10 |
Compare 100 and 1,000. Ten times more numbers cost only three more guesses, because every good guess cuts the list in two. Programmers call this method binary search, and it is how a computer finds one name in a very long sorted list.
Warm or cold needs another plan
From level 8, the answer is only how far away you are. After a first guess of 50, the numbers 30 and 70 get the same answer, so you have two zones left, one on each side. Do not guess between them again. Put your second guess inside one of the zones. If it gets warmer, you know the side. If it gets colder, you know it too.
The fibber: one answer can be false
In the last levels you get higher or lower again, but one answer in the game may be a lie. You do not know which one, and there may be none. Do not check every answer twice, that is too slow. Play as usual, and when the answers point to one small zone, ask once about its edge. If the edge holds, the zone is right.
A number guessing game for two, or for a class
- Two players: each of you hides a number on the same device. Then you take turns, and the first to find the other number wins.
- You hide it: think of a number and let the computer search. You may allow yourself one lie.
- In class: draw a line from 1 to 100 on the board. One student hides a number, the others guess in turn and cross out what is no longer possible. The crossed-out part shows why 50 is a better start than 7.
If you only want a random number
For a draw or a decision, the number wheel picks one for you. It is also an easy way to choose the secret number when you play on paper.
Questions and answers
What is the trick to guess a number from 1 to 100?
Always guess the middle of the numbers that are still possible: 50, then 25 or 75, and so on. This finds any number in 7 guesses or fewer.
Can I find the number in one guess?
Sometimes, with luck. From 1 to 100 the chance is 1 in 100.
Is it ever better not to guess the middle?
Only if you want to gamble. The middle is the safe choice. A number closer to one end can be faster with luck, but the worst case gets longer.
Is there a new number every day?
Yes. Today hides a number from 1 to 1,000, the same for everybody. It changes at midnight on your device.
What age is it for?
The first level goes from 1 to 10, so a child who knows these numbers can play. The fibber with 500 numbers is hard for adults.
