How to Play the Game
Objective: Guess the random number between 1 and 100 in 10 or fewer attempts.
Input Your Guess:
Enter a number between 1 and 100 in the input box labeled "Enter your guess."
Submit Your Guess:
Click the "Submit Guess" button to see if your guess is correct.
Feedback:
If your guess is too low, a message will appear indicating it’s too low and how many attempts you have left.
If your guess is too high, a message will appear indicating it’s too high and how many attempts you have left.
If you guess the correct number, a congratulatory message will appear.
If you use all your attempts without guessing correctly, a game-over message will display the correct number.
Game Reset:
The game will automatically reset 3 seconds after you either guess correctly or run out of attempts.
Example Gameplay
Open the game in your web browser.
Enter a guess, for example, 45, and click "Submit Guess".
Read the feedback message:
"Too low! You have 9 attempts left." → Enter a higher number next time.
"Too high! You have 8 attempts left." → Enter a lower number next time.
"Congratulations! You guessed the number in 5 attempts." → The game will reset shortly.
"Game over! The number was 67." → The game will reset shortly.
Enjoy Playing!
Feel free to share this game with friends and family for a fun and simple guessing game experience! If you have any questions or need further customization, don't hesitate to ask.