Have Fun: https://ishan-nahid.github.io/guess_the_number
This is a simple online number guessing game where the player tries to guess a randomly generated number between 1 and 100. The game provides feedback on whether the guess is too high or too low and keeps track of the number of attempts it takes to guess the correct number
- Randomly generated secret number between 1 and 100.
- Input validation to ensure the user enters a valid number.
- Real-time feedback on the guess (too high, too low, or correct).
- Display of the number of attempts it took to guess the correct number.
- Disable the input field and "Check" button after a correct guess for game completion.
- HTML: For creating the game's structure and user interface.
- CSS: For styling and layout of the game elements.
- JavaScript: For implementing the game's logic and interactivity.
- Clone this repository to your local machine.
- Open the index.html file in a web browser.
- You will see the Number Guessing Game interface.
- Enter your guess in the input field.
- Click the "Check" button to check your guess.
- Follow the on-screen messages to determine if your guess is too high, too low, or correct.
- Keep guessing until you correctly guess the secret number.
- After a correct guess, the input field and "Check" button will be disabled, and you'll see the number of attempts it took.
- Contributed by: https://github.com/ishan-nahid