Welcome to the Guess My Number! game, a fun and interactive web application built for entertainment and educational purposes. Test your guessing skills and see how high you can score!
- Dynamic Difficulty Levels: Adjust the difficulty from Easy (1-20), Medium (1-50), to Hard (1-100), which changes the range of possible numbers and the initial score.
- Timer: Challenge yourself with a 60-second timer. The game ends when the timer runs out or you guess the number correctly.
- Hints: Get accurate hints based on how close your guess is to the secret number, ranging from "π₯ Very hot!" to "π’ Cold!".
- Responsive Design: Optimized for both desktop and mobile devices.
- Start the Game: Select a difficulty level to set the range of possible numbers and start with the initial score.
- Guess the Number: Enter a number and click "Check!" to see if you guessed correctly.
- Receive Hints: If your guess is incorrect, receive hints based on how close you are to the secret number.
- Reset the Game: Click "Again!" to reset the game and start over.
To run this project locally:
-
Clone the repository:
git clone https://github.com/SandunLB/Guess-The-Number-js.git
-
Navigate to the project directory:
cd guess-my-number
-
Open
index.html
in your preferred web browser.
- HTML5: Markup language for the web structure.
- CSS3: Styling for a modern and responsive design.
- JavaScript: Game logic and interactivity.
- Add user authentication to track scores and progress.
- Introduce multiplayer modes for competitive play.
- Expand the game with more challenging difficulty settings.
Feel free to fork the repository and submit pull requests. Contributions are welcome!
Created by Sandun LB for educational purposes and fun.
Enjoy the game and happy guessing!