Skip to content

A fun and interactive Number Guessing Game created with HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

haniaghaffar/Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing-Game

A fun and interactive Number Guessing Game created with HTML, CSS, and JavaScript. The game challenges players to guess a randomly selected number within a specified range. The user receives feedback on whether their guess is too high, too low, or correct, along with the number of attempts remaining. Once the game ends, players can choose to play again.

Features

Random Number Generation: A random number is chosen within a user-defined range (default 1–100). User Feedback: After each guess, the game provides feedback (too high, too low, or correct). Limited Attempts: Players have a set number of guesses to find the correct number. Responsive Design: The game works seamlessly across different screen sizes and devices. Restart Option: After finishing the game, players can restart with a new random number.

How to Play

The game will pick a random number between 1 and 100. Guess a number within that range. You'll get feedback if your guess is too high, too low, or correct. Keep guessing until you guess the right number or run out of attempts. Once the game is over, you can choose to play again.

How to Use

Clone or download the repository to your local machine. Open index.html in your browser to play the game. Start guessing and enjoy! Technologies Used HTML for the structure of the game. CSS for styling and making the game visually appealing. JavaScript for game logic, random number generation, and user interaction.

Installation

To run the game locally:

Clone this repository:

To run the app locally: https://github.com/haniaghaffar/Guessing-Game Open the index.html file in your web browser.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A fun and interactive Number Guessing Game created with HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published