Skip to content

JoeAtEgypt/guess-my-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Guess My Number, a fun, interactive number guessing game! Built entirely with JavaScript, this project highlights dynamic DOM manipulation to create an engaging user experience. Let's dive into the game and its cool features!


📜 Game Rules

  • Goal: Guess the secret number between 1 and 20.
  • Tries: Limited attempts, so make each guess count!
  • Hints: The game provides hints if your guess is too high or too low.
  • Winning: Guess correctly to win and get a celebratory message!

🔥 Features

  • Dynamic Feedback: Get instant hints if your guess is high or low.
  • Responsive Styling: Enjoy a smooth, intuitive interface.
  • Score Tracking: See how many tries you have left and aim for a high score!
  • Play Again: Want more? Hit the restart button to play again!

💻 What I Learned

This project taught me the essentials of DOM Manipulation in JavaScript, including:

  • Changing text, styles, and classes on the fly to create interactive elements.
  • Responding to user input with event listeners for seamless gameplay.
  • Updating and resetting the game dynamically with JavaScript functions.

🚀 How to Play

  1. Clone this repository.
  2. Open index.html in your favorite browser.
  3. Enter a number between 1 and 20 in the input box and click Guess.
  4. Follow the hints until you find the secret number.
  5. Celebrate! 🥳 Reset and try again if you wish!

🤓 Future Enhancements

Some ideas to take it further:

  • Add sound effects to make the gameplay even more exciting.

Give it a go, and may the odds be ever in your favor! ✨

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published