All tools

Number Guessing Game

Guess the number from 1 to 100 in as few tries as possible.

I’m thinking of a number between 1 and 100.

No guesses yet.

About

The computer picks a number between 1 and 100. You guess. The tool tells you higher or lower until you find it. Tracks your average guesses across games. Optimal strategy hits any number in 7 guesses or less.

How to use

  1. Type a guess.
  2. Adjust based on the higher/lower hint.
  3. Get there in as few tries as you can.

FAQ

What's the optimal strategy?+

Binary search. Guess 50, then halve the remaining range each time. Worst case is 7 guesses for any number 1 to 100.