DailiGame Daily puzzles

Ways to play

Number guessing games: six ways to play, and the maths behind them

Every number guessing game is the same idea wearing different rules: you have a secret number, you have limited attempts, and each attempt buys you information. Here are six versions, from the one you played as a child to the one where being close is the whole point.

What makes a number guessing game work

Strip the theme away and every game on this page has three parts: a hidden number, an attempt budget, and a feedback rule that tells you how close you were. Change any one of the three and you get a different game.

Change the feedback and the game gets harder or easier. Change the attempt budget and it gets tense or relaxed. Change the number of hidden values and you change how much thinking is required. That is why "number guessing game" covers everything from a party game to a puzzle you can play alone on a phone.

1. High-low: the version everyone knows

One player picks a number between 1 and 100. You say a number, and the answer is higher, lower, or correct. You keep going until you find it.

This is the cleanest form of the game because the feedback is complete: after every guess you know the remaining range exactly. If the secret number is 63 and you say 50 and hear "higher", you now know it is in 51 to 100. The range has halved in one move.

2. Guess the number in seven tries, and why seven is always enough

Here is the part most people never notice: you can always find a number between 1 and 100 in seven guesses, if you guess the middle of the remaining range every time.

The number of values you can handle doubles with each guess: 1, 2, 4, 8, 16, 32, 64, 128. Seven guesses cover up to 128 values, so 100 fits with room to spare. Ten guesses cover 1,024, which is why guessing between 1 and 1,000 also has a guaranteed answer — in ten moves.

This is the same maths that makes binary search fast, and it is the single most useful idea in this whole genre. Guessing at random from 1 to 100 takes about 50 attempts on average. Guessing the midpoint takes seven, every time.

3. Bulls and cows: four digits, two numbers of feedback

The computer picks four digits. You guess four digits and get two counts: bulls are digits that are right and in the right position, cows are digits that are right but in the wrong position. 1234 against a secret of 1356 scores one bull (the 1) and one cow (the 3).

Bulls and cows is harder than high-low because the feedback is less informative — you learn about individual digits rather than the whole range. Good players open with a guess that uses four different digits, then use the counts to eliminate positions rather than whole numbers. It is the paper version of Mastermind, and it has been a classroom staple for decades because it teaches logical elimination better than almost anything else.

4. Closest guess wins: the party format

Instead of right or wrong, everyone writes a guess and the closest one wins. Suddenly the game rewards calibration rather than elimination: you are not hunting a value, you are trying to land near it.

The interesting consequence is that extreme guesses are rarely wrong by much in relative terms. If the answer is 4,000 and you guess 100, you are off by 3,900. If someone else guesses 8,000, they are off by 4,000 — and you win. This is why good players in this format aim high on questions where the true answer is large and uncertain, and it is exactly the reasoning that makes the format fun to argue about afterwards.

5. Estimation rounds: the answer has to be exact

Tallier is our version of this format, and it flips one rule. Each question has a single exact numeric answer — how many keys a piano has, how many moons Mars has — and you type a number. Your score for the question is 100 minus the percentage you were off by, so a close answer still earns points and a wild one earns almost nothing. Five questions, 500 points a day.

The design choice that matters is that the answers are fixed facts, not opinions. No "about", no ranges, no answer that will be wrong in five years. That makes the game checkable: if you think an answer is wrong, you can look it up and tell us, and we will fix it.

6. Narrowing games: guess the range, not the number

A quieter variant: you are told a range and asked to narrow it. Two players take turns cutting the range in half, and the player who lands on the number wins. It is high-low with a scoreboard, and it is the version to teach if you want someone to discover binary search for themselves rather than be told about it.

The one strategy that works everywhere

Whichever version you play, three habits pay off:

  1. Cut the space in half. If the feedback lets you split the remaining possibilities, do that instead of guessing what feels likely. Feeling is for the last few values, not the first few.
  2. Spend early guesses on information, not on hope. In bulls and cows, a first guess with four different digits tells you more than a guess that might be right.
  3. When two answers are equally likely, guess the one that divides the rest. This is the move that separates people who finish in six from people who finish in nine.

Which one to play right now

If you want three minutes and no learning curve, play high-low against a friend. If you want something to think about on a train, bulls and cows. If you like the party-game argument more than the puzzle, closest-guess-wins. And if you want a five-question version with a score you can compare, Tallier is here — it resets at midnight and needs no account.

If words are more your thing than numbers, the Fivefold page has our five-letter game, and the how to play page covers the rules of both.

Questions people ask

What is the best first guess in a number guessing game?

For 1 to 100, guess 50. For a range you do not know, guess the middle of the largest plausible range rather than a "likely" number. The midpoint halves the possibilities; a likely-looking number usually does not.

How many guesses do you need to guess a number from 1 to 100?

Seven, if you always guess the midpoint. Each guess doubles the number of values you can resolve, and 2 to the power of 7 is 128.

Can you guess 1 to 1,000 in ten tries?

Yes. Ten guesses resolve 1,024 values, so 1,000 fits. The same method works for any range — you need enough guesses to double past the size of the range.

Is Tallier the same as guessing a number between 1 and 100?

No. High-low gives you a hidden value and tells you higher or lower. Tallier gives you a question with a fixed answer and scores how close your number is, as a percentage. The feedback is a score rather than a direction, which is why you cannot binary-search it — you have to estimate.

Are these games free?

High-low, bulls and cows and closest-guess-wins need nothing but paper. Tallier and Fivefold are free on this site, with no account and no download.