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.
Here’s a gif showing how the game works 🎮:
You can play the game online here: Guess My Number - Live Demo
- Start the Game: Reload the page to generate a new random number.
- Make a Guess: Enter a number between 1 and 20 and submit it.
- Get Feedback: The game will tell you if your guess is too high, too low, or correct.
- Try Again: Adjust your guess based on the feedback until you either guess correctly or run out of attempts.
- 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.
- HTML5: For structuring the webpage.
- CSS3: For styling the webpage.
- JavaScript: For game logic and interactivity.
- Clone the repository:
git clone https://github.com/saleh-coder/guess-my-number
- Open the project folder.
- Open
index.html
in your browser to start playing.
If you would like to contribute to this project, feel free to fork it and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
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! 🎉