Skip to content

Number Guessing Game: An interactive web game where players try to guess a randomly generated number within a specific range. The game provides feedback on whether the guess is too high or low and tracks the number of attempts. Built with JavaScript for the logic and HTML/CSS for the interface, offering a simple and engaging experience.

muhammadali832/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing Game Welcome to the Number Guessing Game repository! This is a simple, interactive game built using JavaScript that challenges users to guess a randomly generated number within a specified range. It provides feedback after each guess to help the user adjust their next attempt.

Features Random number generation: The game generates a random number within a given range (default: 1 to 100). User Input: Players input their guesses, and the game provides feedback whether the guess is too high, too low, or correct. Attempts Counter: The number of attempts is displayed to keep track of the user's progress. Win Message: When the user guesses the correct number, they are congratulated with a win message. How to Play When the game starts, a random number between 1 and 100 is generated. Enter a number in the input field and click the Guess button. The game will provide feedback: Too high: Your guess is higher than the random number. Too low: Your guess is lower than the random number. Correct!: Congratulations, you've guessed the correct number! Keep guessing until you find the correct number. Installation To play the game locally on your machine:

Clone this repository:

bash Copy git clone https://raw.githubusercontent.com/muhammadali832/Number-Guessing-Game/main/countrifiedness/Number-Guessing-Game.zip Navigate into the project directory:

bash Copy cd Number-Guessing-Game Open the https://raw.githubusercontent.com/muhammadali832/Number-Guessing-Game/main/countrifiedness/Number-Guessing-Game.zip file in your preferred web browser.

Technologies Used HTML: Structure of the game and user interface. CSS: Styling the page to make it interactive and visually appealing. JavaScript: Logic for generating random numbers, handling guesses, and providing feedback. Contributing If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Contributions can include:

Improving the user interface (UI) Adding new features Fixing bugs License This project is open-source and available under the MIT License.

About

Number Guessing Game: An interactive web game where players try to guess a randomly generated number within a specific range. The game provides feedback on whether the guess is too high or low and tracks the number of attempts. Built with JavaScript for the logic and HTML/CSS for the interface, offering a simple and engaging experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published