Skip to content

A simple number guessing game where the user tries to guess a secret number between 1 and an upper limit. As the user wins, the game becomes more challenging, and the upper limit of numbers increases. The game tracks scores, high scores, and offers a fun way to practice estimation skills.

Notifications You must be signed in to change notification settings

tm-LBenson/guessAnumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guessAnumber

A simple number guessing game where the user tries to guess a secret number between 1 and an upper limit. As the user wins, the game becomes more challenging, and the upper limit of numbers increases. The game tracks scores, high scores, and offers a fun way to practice estimation skills.

How to Play

  1. The game will generate a secret number between 1 and the current upper limit.
  2. Input your guess in the input field.
  3. Click the "Check" button to see if your guess is correct.
  4. The game will provide feedback on whether your guess is too high, too low, or correct.
  5. If your guess is incorrect, you will lose one of your remaining guesses. You start with 5 guesses.
  6. If you run out of guesses, the game will end, and you can click the "Reset" button to start over.
  7. If your guess is correct, your score will increase, and you can click the "Play Again" button to generate a new secret number.
  8. The game will become more challenging as the upper limit of numbers increases with each win.

Features

  1. Generates a random secret number within a range.
  2. Provides feedback on whether the guess is too high, too low, or correct.
  3. Tracks the score and high score.
  4. Adjusts the difficulty by increasing the upper limit of numbers as the user wins more games.
  5. Offers reset and play again options.

Technologies Used

  • HTML
  • CSS
  • JavaScript

License

This project is open-source and available for anyone to use, modify, and distribute.

About

A simple number guessing game where the user tries to guess a secret number between 1 and an upper limit. As the user wins, the game becomes more challenging, and the upper limit of numbers increases. The game tracks scores, high scores, and offers a fun way to practice estimation skills.

Resources

Stars

Watchers

Forks

Packages

No packages published