A fun and interactive Number Guessing Game created with HTML, CSS, and JavaScript. The game challenges players to guess a randomly selected number within a specified range. The user receives feedback on whether their guess is too high, too low, or correct, along with the number of attempts remaining. Once the game ends, players can choose to play again.
Random Number Generation: A random number is chosen within a user-defined range (default 1–100). User Feedback: After each guess, the game provides feedback (too high, too low, or correct). Limited Attempts: Players have a set number of guesses to find the correct number. Responsive Design: The game works seamlessly across different screen sizes and devices. Restart Option: After finishing the game, players can restart with a new random number.
The game will pick a random number between 1 and 100. Guess a number within that range. You'll get feedback if your guess is too high, too low, or correct. Keep guessing until you guess the right number or run out of attempts. Once the game is over, you can choose to play again.
Clone or download the repository to your local machine. Open index.html in your browser to play the game. Start guessing and enjoy! Technologies Used HTML for the structure of the game. CSS for styling and making the game visually appealing. JavaScript for game logic, random number generation, and user interaction.
To run the game locally:
To run the app locally: https://github.com/haniaghaffar/Guessing-Game Open the index.html file in your web browser.
This project is licensed under the MIT License - see the LICENSE file for details.