Skip to content

A simple number guessing game built with HTML, CSS, and JavaScript. Try to guess a randomly generated number between 1 and 20.

Notifications You must be signed in to change notification settings

saleh-coder/Guess-My-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 Guess My Number

Welcome to the Guess My Number game! This is a simple number guessing game built with HTML, CSS, and JavaScript. The goal is to guess a randomly generated number between 1 and 20.

📷 Demo Gif

Here’s a gif showing how the game works 🎮: Game Demo Gif

🌐 Live Demo

You can play the game online here: Guess My Number - Live Demo

🎮 How to Play

  1. Start the Game: Reload the page to generate a new random number.
  2. Make a Guess: Enter a number between 1 and 20 and submit it.
  3. Get Feedback: The game will tell you if your guess is too high, too low, or correct.
  4. Try Again: Adjust your guess based on the feedback until you either guess correctly or run out of attempts.

🚀 Features

  • Random Number Generation: The game generates a random number between 1 and 20 that you need to guess.
  • Score Tracking: Your score decreases with each incorrect guess.
  • Game Over Condition: The game ends when your score reaches zero, and you are notified.

🛠 Technologies Used

  • HTML5: For structuring the webpage.
  • CSS3: For styling the webpage.
  • JavaScript: For game logic and interactivity.

⚙️ How to Run

  1. Clone the repository: git clone https://github.com/saleh-coder/guess-my-number
  2. Open the project folder.
  3. Open index.html in your browser to start playing.

📝 How to Contribute (Optional)

If you would like to contribute to this project, feel free to fork it and submit a pull request.

📄 License

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

🎓 Credits

This project was developed based on the teachings of the course The Complete JavaScript Course 2024: From Zero to Expert! taught by Jonas Schmedtmann on Udemy.

Enjoy the game, and happy coding! 🎉

About

A simple number guessing game built with HTML, CSS, and JavaScript. Try to guess a randomly generated number between 1 and 20.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published