Number Guessing Game screenshot

Number Guessing Game

Guess the secret number from 1–100 with higher/lower hints, a narrowing range and a best score kept in this browser.

Privacy First
0 Runs
Updated 2026-11-09
Runs in your browser
No account needed
Nothing is uploaded
Secret never leaves the tab

What the guessing game keeps

One secret number, drawn in this tab when the game starts, over 1–100 or 1–1000. Each guess is answered higher, lower or correct, the possible range narrows past every wrong guess, and the attempt count climbs until the secret lands. The fewest attempts per range persist as the best score, so a return visit opens against your own record rather than a blank board.

How to use it

Pick the range, type a guess inside it and press Guess — or Enter. The line under the board names the direction and the range that remains; Restart draws a new secret, and Copy history takes the attempt list with it.

Worked example

Range 1–100, secret 42 (authored illustration — the real secret differs every game): 50 → lower, 1–49 remain; 25 → higher, 26–49 remain; 37 → higher, 38–49 remain; 42 → correct in 4 attempts. A guess outside the remaining range is refused with the range named.

Why it runs in your browser

The secret is drawn with crypto.getRandomValues in this tab and never sent anywhere, which is the whole anti-cheat: there is no request to peek at and no server to ask. Guesses, hints and the best score never leave the tab either; clearing the namespaced store resets the record.

The page keeps one secret number and answers every guess higher, lower or correct.

The possible range narrows past each miss until the secret lands.

The fewest attempts per range persist as the best score in this browser.

Guess inside the window

Pick 1–100 or 1–1000, type a guess and press Guess. A miss names the direction and shrinks the possible range past the guess, so the next guess always has a smaller window than the last.

A guess outside the remaining range is refused with the range named — it costs no attempt and teaches nothing, so the page does not accept it.

  • Range select starts each game
  • Higher/lower after every miss
  • Possible range shown beside attempts

The record stays local

Winning in fewer attempts than the stored best rewrites the record for that range, shown beside the board. Restart draws a fresh secret without touching the record.

Copy history takes the attempt list as text; the secret is never included, because the page has no reason to write it down anywhere.

How to use the board and hints

Pick the range, 1 to 100 or 1 to 1000, type a guess into Enter your guess and press Guess, or Enter. The line under the board names the direction, higher or lower, and the range that remains, which shrinks past every miss; the attempt count climbs until the secret lands.

Press Restart for a fresh secret without touching the best score, and Copy history to take the attempt list as text. A guess outside the remaining range is refused with the range named and costs no attempt.

What to Expect

Best for

  • A quick guessing game with honest hints
  • Beating your own attempt record
  • Teaching binary-search intuition

Not ideal for

  • Multiplayer or shared leaderboards
  • Proof that a number is random
  • Anything with stakes

What this tool keeps

  • The secret inside this tab
  • The best score per range
  • The full attempt history

What may need cleanup

  • A blocked store, which drops the record
  • Cleared site data, which resets it
  • Nothing else — there is no account

Common errors

  • Guessing outside the shown range
  • Reading higher as praise
  • Expecting the secret to survive reload

Example use cases

  • Landing 42 in 4 guesses on 1–100
  • Halving the window each attempt
  • Copying a winning history

Sample input

Range 1–100, guesses 50, 25, 37, 42.

Sample output

Correct in 4 attempts — lower, higher, higher, correct.

Who this is for

  • Players killing five minutes
  • Teachers demoing search strategy
  • Anyone testing their halving instinct

Frequently asked questions

Do my guesses ever leave this tab?

Never. The secret, every guess and every hint stay in the page: there is no request to intercept and no server that knows the answer.

How is the secret drawn?

Once per game from the platform random source in this tab, over 1–100 or 1–1000. Restart draws a fresh one; the page never reuses a secret.

Where does the best score live?

Under a namespaced key in your browser's local storage, one record per range. Clearing site data resets it, and a blocked store simply means the record does not persist.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.