A responsive, interactive Number Guessing Game built using HTML, CSS, and JavaScript. The game generates a random number between 1 and 100, and challenges the user to guess it with real-time feedback and attempt tracking.
- ๐ฒ Random number generation (1โ100)
- โจ๏ธ Input validation for out-of-range or invalid entries
- ๐๐ Real-time feedback (too high / too low / correct)
- ๐ข Attempt counter
- ๐ "New Game" reset functionality
- โ Enter key support for quick guessing
- ๐จ Animated gradient background with responsive UI
- ๐ฑ Mobile and desktop friendly design
- HTML5
- CSS3 (Flexbox, gradients, animations)
- JavaScript (ES6, DOM manipulation, event handling)
number-guessing/
โ
โโโ index.html # Main HTML file (structure, styles, and script)
โโโ README.md
-
Clone the repository:
git clone https://github.com/hima065/number-guessing.git
-
Navigate to the project folder:
cd number-guessing -
Open
index.htmlin your browser โ no build steps or dependencies required.
- Enter a number between 1 and 100 in the input field.
- Click Guess or press Enter.
- Follow the feedback (too high / too low) to narrow down your guess.
- Once correct, click New Game to play again.
(Add your deployed link here if hosted, e.g., via GitHub Pages or Vercel)
(Add a screenshot or GIF of the game here)