This is a simple and retro-style Random Number Guessing Game built with HTML, CSS, and JavaScript. The game focuses on simplicity and a vintage aesthetic that brings calmness through minimal design. π
- A random number is hidden behind a question mark (?) on the screen.
- The user must guess the hidden number by typing it into the input field.
- If the guessed number is too high, a message appears saying:
"Too high!"
. - If the guessed number is too low, it says:
"Too low!"
. - If the guess is correct, the background turns green, and a success message is displayed.
- The player starts with 20 points. Each wrong guess decreases the score by **1 point`.
- If the score reaches 0, the background turns red, and the game shows:
"You lost!"
.
- π² Random number generated each time the game is played
- β Real-time feedback on whether the guess is high, low, or correct
- π’ Success state with green background
- π΄ Game over state with red background
- π Score decreases with each wrong attempt
- π Clean, dark-themed and retro-style interface
- HTML5 β Markup structure
- CSS3 β Styling (dark, minimal retro look)
- Vanilla JavaScript β Game logic, DOM manipulation, and score tracking
- Clone the repository:
git clone https://github.com/AslDeveloper07/Random-Number.git