A fun and interactive number-guessing game built with HTML, CSS, and JavaScript.
Try to guess the secret number between 1 and 20 while keeping your score high.
The game also tracks your highscore so you can challenge yourself again and again!
- ๐ข Guess a random number between 1 and 20
- ๐ฎ Real-time feedback (
Too High!,Too Low!,Correct!) - ๐ฏ Score decreases with each wrong attempt
- ๐ฅ Highscore tracking for replayability
- ๐จ Simple and responsive UI
๐ฆ guess-my-number
โโโ .prettierrc # Prettier Configuration
โโโ index.html # Main HTML file
โโโ style.css # Styling (CSS)
โโโ script.js # Game logic (JavaScript)
- Enter a number between 1 and 20 in the input box.
- Click Check! to see if your guess is correct.
- The game will give hints:
- ๐ "Too Low!"
- ๐ "Too High!"
- โ "Correct Number!"
- Each wrong guess reduces your score.
- Beat your highscore by guessing the number with fewer tries!
- Click Again! to restart the game anytime.
You can run the game locally in 2 easy steps:
-
Clone the repo
git clone https://github.com/khalidrahmanhanify/guess-my-number-v2.git cd guess-my-number -
Open in Browser
- Just open the
index.htmlfile in your favorite browser.
- Just open the
If deployed (e.g., GitHub Pages, Netlify, Vercel), add the link here: ๐ Play Guess My Number!
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. Youโre free to use, modify, and distribute it.
Khalid Rahman Hanify