A simple number guessing game where users try to guess a randomly generated number between 1 and 30. Each incorrect guess decreases the score by one point. When the correct number is guessed, the score is saved as the high score if it is higher than the previous high score. The game features a reset functionality, allowing users to play again after each round.
-
Guess a Number: Enter a number between 1 and 30 in the input field and click the "Check!" button.
-
Feedback: The game will provide feedback on whether your guess is too high, too low, or correct.
-
Score: Each incorrect guess decreases your score by one point.
-
High Score: If you guess the correct number, your score is saved as the high score if it is higher than the previous high score.
-
Game Over: If you run out of points (score reaches zero), the game is over.
-
Play Again: Click the "Try Again!" button to reset the game and play again. The input field and "Check" button will be re-enabled.
-
Random Number Generation: A new random number is generated between 1 and 30 each game.
-
Score Tracking: Your score decreases with each incorrect guess.
-
High Score Tracking: Your highest score is saved and displayed.
-
Game Feedback: The game provides feedback on your guesses (too high, too low, or correct).
- Responsive Design: The game is styled to look good on different devices.
To run the game locally:
- Clone the repository:
git clone https://github.com/halil-yesilyurt/number-quest.git
- Navigate to the project directory:
cd number-quest
Open the dist/index.html file in your web browser to start the game.
Contributions are welcome! Feel free to submit a pull request or open an issue to improve the game.
This project is licensed under the MIT License. See the LICENSE file for details.