A modern, responsive number guessing game with multiple difficulties, optional hints, attempts counter, guess history, and local high scores.
- Run locally using the steps below, or deploy with GitHub Pages (guide below).
- Difficulty levels: Easy (1–50), Medium (1–100), Hard (1–500)
- Hints (optional): Higher/Lower plus proximity feedback (Hot/Warm/Cold)
- Attempts counter and guess history chips
- Local high scores per difficulty (player name and best attempts)
- Keyboard-friendly (Enter to submit) and mobile-friendly UI
- Download or clone this repository.
- Open
index.html
directly in your browser, or use a local web server (recommended).
- VS Code: install the "Live Server" extension, then "Open with Live Server" on
index.html
. - Python:
python -m http.server
(then openhttp://localhost:8000
). - Node:
npx serve
(then open the printed URL).
- Enter your name, choose a difficulty, and click Start Game.
- Type your guess and press Guess (or press Enter).
- Read the feedback (and optional hints) and keep guessing until you find the number.
- Use New Round to play again with the same difficulty, or Reset Game to start fresh.
- Enter: Submit current guess
- Esc: (If implemented) Clear input
- HTML for structure (
index.html
) - CSS for styling (
styles.css
) - Vanilla JavaScript for game logic and persistence (
script.js
)
index.html
– App layout and UI elementsstyles.css
– Responsive theme and componentsscript.js
– Game logic, state management, andlocalStorage
high scores
- High scores are stored locally in your browser via
localStorage
, scoped per difficulty. - No data is sent to any server.