Guess the Number Game
This is a simple interactive web game where users try to guess a randomly generated number between 1 and 20. The game provides feedback on whether the guessed number is too high or too low and tracks the score.
Features:
• Random Number Generation: Generates a secret number that the player must guess.
• Score Tracking: The score decreases with each guess, providing a challenge to guess the number within a limited number of attempts.
• Dynamic Feedback: Displays messages indicating whether the guessed number is too high, too low, or correct.
• Audio Effects: Plays sound effects for different actions, enhancing user experience.
• Reset Functionality: Allows players to restart the game easily.
Technologies & Methods:
• JavaScript (ES6+)
• Utilizes functions to handle game logic and user interactions.
• Employs event listeners to manage user inputs and game flow.
• DOM Manipulation
• Accesses and modifies HTML elements dynamically to reflect game state and user actions.
• Audio API
• Implements sound effects for a more engaging gameplay experience.
• Responsive Design
• Designed for user interaction through mouse events and input fields.
Setup:
1. Clone the repository.
2. Open the index.html file in a web browser.
Enjoy playing the “Guess the Number” game and challenge your friends to beat your score!