Skip to content

"Guess My Number" is a thrilling web-based game where players guess a number between 1 and 20, aiming to beat their high score. With vibrant design and dynamic feedback, it offers an engaging experience.

License

Notifications You must be signed in to change notification settings

ELHARCHAOUI-SIFEDDINE/GuessNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess My Number Game 🎮

Welcome to Guess My Number, an exciting web-based guessing game where players try to guess a random number between 1 and 20. The game is built using HTML, CSS (Tailwind CSS), and JavaScript, providing an enjoyable user experience with dynamic styling and seamless functionality.

Demo 🕹️

Check out the live demo here.

Features 🚀

  • Guessing Game: Players try to guess a number between 1 and 20.
  • Interactive Interface: Dynamic styling and engaging user interface.
  • Score Tracking: Keep track of the current score and high score.
  • Responsive Design: Optimized for various screen sizes and devices.

Technologies Used 🛠️

  • HTML
  • CSS (Tailwind CSS)
  • JavaScript

How to Play 🎲

  1. Guess a Number: Input your guess in the provided input field.
  2. Check: Click the "Check" button to see if your guess is correct.
  3. Winning: Keep guessing until you find the correct number. The game will provide feedback on whether your guess is too high or too low.
  4. Score: Your score starts at 20 and decreases with each incorrect guess. Try to achieve the highest score possible.

Files 🗂️

  • index.html: Contains the structure of the game.
  • style.css: Custom CSS styles for the game, including Tailwind CSS classes.
  • script.js: JavaScript file containing the game logic.

Code Overview 🧩

HTML Structure

The HTML structure includes elements for the game title, number guessing input, buttons for checking and resetting the game, and sections for displaying messages and scores.

JavaScript Logic

The JavaScript logic handles generating a random number, comparing the user's guess with the target number, updating the score, providing feedback messages, and resetting the game.

Screenshot 📸

guess

Setup 🛴

  1. Clone the repository:

    git clone https://github.com/ELHARCHAOUI-SIFEDDINE/GuessNumber.git
  2. Navigate to the project directory:

    cd GuessNumber
  3. Open index.html in your preferred web browser.

Contributing 🤝

Contributions are welcome! If you have ideas for improvements or new features, feel free to submit a pull request.

License 📜

This project is licensed under the MIT License.

Contact 📧

For any inquiries or feedback, please contact elharchaouisifeddine@gmail.com.

About

"Guess My Number" is a thrilling web-based game where players guess a number between 1 and 20, aiming to beat their high score. With vibrant design and dynamic feedback, it offers an engaging experience.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published