This is a simple, interactive Number Guessing Game built using HTML, CSS, and JavaScript. The objective of the game is for the player to guess a randomly generated number between 1 and 100. The game provides hints whether the guess is too high or too low until the player guesses the correct number.
Random Number Generation: A random number between 1 and 100 is generated when the game starts.
User Interaction: The player enters their guess in an input field, and the game provides feedback on whether the guess is too high, too low, or correct.
Feedback Mechanism: The game gives real-time feedback with color-coded messages:
Red for incorrect guesses (too high/low).
Gold for a successful guess.
Dynamic Visual Design: The game features vibrant, game-inspired colors, animations, and interactive buttons, creating a playful, engaging atmosphere.
Responsive Layout: The game adapts to different screen sizes and provides a centered, mobile-friendly interface.
HTML: For structuring the game layout and elements.
CSS: For styling the game interface with modern effects and animations.
JavaScript: For game logic, handling user input, and providing real-time feedback.
When the game starts, the player will see a prompt to guess a number between 1 and 100.
The player types a guess and clicks the "Guess" button.
The game will tell whether the guess is too high, too low, or correct.
The goal is to guess the number in as few attempts as possible.
https://mhd-humraz.github.io/Guessing-Game-JS/ or Download or clone the repository.
Open the index.html file in any web browser to start playing.