Welcome to the Number Guessing Game repository! This small and fun game is built using HTML, CSS, and JavaScript. It challenges your guessing skills and keeps track of your score and highest score. Let's get started!
The Number Guessing Game is a simple yet entertaining game where the player's objective is to guess a random number within a specified range. With each wrong guess, your score decreases, and if you can beat your highest score, you'll have a new record to brag about!
-
Launch the Game: Open the
index.html
file in your web browser to start the game. -
Make a Guess: Enter your guess in the input field and click the "Check" button. The game will tell you if your guess is too high or too low.
-
Keep Guessing: Keep making guesses until you correctly guess the random number.
-
Scoring: Your current score will be displayed on the screen. Try to beat your highest score!
-
Reset the Game: You can reset the game at any time by clicking the "Again" button. This will clear your current score and generate a new random number.
- Randomly generated numbers make each game unique.
- Keep track of your current score and highest score.
- Easy-to-use interface with clear instructions.
The project structure is quite straightforward:
index.html
: The HTML file containing the game interface and elements.style.css
: The CSS file responsible for styling the game.script.js
: The JavaScript file that handles game logic, random number generation, scoring, and user interactions.
-
Clone this repository to your local machine:
git clone https://github.com/amanverma-11/number-guessing-game.git