Skip to content

AslDeveloper07/Random-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Random Guess Game

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. 😁

πŸ•ΉοΈ Game Description

  • 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!".

✨ Features

  • 🎲 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

πŸ›  Technologies Used

  • HTML5 – Markup structure
  • CSS3 – Styling (dark, minimal retro look)
  • Vanilla JavaScript – Game logic, DOM manipulation, and score tracking

πŸš€ How to Play

  1. Clone the repository:
    git clone https://github.com/AslDeveloper07/Random-Number.git

About

find a number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published