Skip to content

kunwarshivamjsr/Guessing_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎯 Number Guessing Game

An interactive web-based Number Guessing Game built using HTML, CSS, and JavaScript.

In this game, the user first selects a maximum number range. The system then generates a random number within that range, and the player must guess the correct number.


🚀 Features

  • 🎲 User selects maximum range
  • 🔢 Random number generation within selected range
  • 🧠 Hint system (Too High / Too Low)
  • ✅ Displays correct guess message
  • 🔄 Option to restart the game
  • 📱 Responsive and user-friendly interface

🛠️ Built With

  • HTML5
  • CSS3
  • JavaScript (DOM Manipulation & Logic)

📂 Project Structure

Guessing_Game/ │ ├── index.html # Main game interface ├── Guessing_Game.css # Styling file ├── game.js # Game logic └── README.md # Project documentation


🎮 How to Play

  1. Enter the maximum number range (example: 100).
  2. Click the Start Game button.
  3. The system generates a random number between 1 and your selected range.
  4. Enter your guess.
  5. You will receive hints:
    • 📉 Too Low
    • 📈 Too High
  6. Keep guessing until you find the correct number.
  7. The game displays a success message when you guess correctly.

💻 How to Run Locally

  1. Clone the repository: git clone https://github.com/kunwarshivamjsr/Guessing_Game

  2. Open the project folder.

  3. Open index.html in your browser.


🎯 Learning Objectives

This project helps in understanding:

  • JavaScript random number generation
  • Conditional statements
  • Event handling
  • DOM manipulation
  • Basic game logic implementation

📬 Contact

For suggestions or improvements:


📄 License

This project is open source and free to use for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors