The computer picked a secret number. Can you find it?
1. Choose a difficulty range: 1-100, 1-500, or 1-1000.
2. Enter your guess and click Guess or press Enter.
3. The game tells you if the secret number is higher or lower than your guess.
4. Keep guessing until you find it! Fewer guesses = better score.
5. Try to match the optimal binary search count for each range!
Guess the Number is a classic brain training game that teaches logical thinking and the binary search algorithm. The computer picks a secret number within a chosen range, and you narrow it down using higher/lower feedback. With three difficulty levels and personal best tracking per range, it is a fun way to sharpen your analytical skills. No downloads required, play free in your browser.
Number guessing games teach binary search thinking, the optimal strategy of always guessing the middle value to narrow possibilities by half each time. Computer science students learn this as their first algorithm. The concept dates back to parlor games of the 1800s, where players would challenge each other to deduce a secret number through yes or no questions. With feedback of "higher" or "lower," any number from 1 to 100 can be found in just 7 guesses using the midpoint approach. PlayBrain's version offers three difficulty ranges so you can test your binary search skills at increasing scales, all while tracking your best attempt for each range.