Number Guess
Number Guess is a simple but addictive guessing game that tests your logical deduction skills. The game picks a random number between 1 and 100, and you have unlimited attempts to guess it. After each guess, the game tells you whether the target is higher or lower than your guess, using a "hot" or "cold" indicator that gets warmer as you approach the correct number. This feedback system allows you to use binary search logic to narrow down the range efficiently. An optimal strategy using binary search can find any number in at most 7 guesses (since log2(100) ≈ 6.6). The game tracks your guess count and compares it to the theoretical minimum, giving you a score based on how close you came to optimal play.
The game's history display shows all your previous guesses, color-coded: red for "too high," blue for "too low," and green for the correct answer. This visual history helps you avoid repeating guesses and track your deduction process. The game also records your best score (fewest guesses) across sessions using localStorage. The number range was deliberately set to 1-100 because it provides enough complexity to be challenging while remaining solvable within a reasonable number of guesses. A random number generator using Math.random seeded with cryptographic noise ensures that the sequence is unpredictable across games. The interface is DOM-based for simplicity and speed, with no Canvas overhead, making it the fastest-loading game on the site.
Controls
Designed for both desktop and mobile play. Touch-friendly interface.