Skip to content

Latest commit

ย 

History

History
79 lines (60 loc) ยท 2.58 KB

File metadata and controls

79 lines (60 loc) ยท 2.58 KB

TEST12

๐ŸŽฎ Guess the Number Game ๐ŸŽฎ

Welcome to the Guess the Number Game, a fun and interactive game where you challenge yourself to guess a randomly chosen number! Test your luck and logic with limited attemptsโ€”can you outsmart the computer? ๐Ÿš€


๐ŸŒŸ Features

  • Dynamic Gameplay: The computer selects a random number between 0 and 10.
  • Interactive UI: User-friendly interface with hover and click effects.
  • Hints Provided: Get feedback to adjust your guess (Pick a Lower Number or Pick a Higher Number).
  • Chances Reset: Fail? No worries, the game restarts automatically!
  • Responsive Design: Works seamlessly on devices of all sizes.

๐Ÿ› ๏ธ Technologies Used

  • HTML: Structuring the interface.
  • CSS: Styling the game for a visually appealing experience.
  • JavaScript (ES6): Game logic and interactivity.

๐ŸŽฎ How to Play

  1. Clone the repository:
    git clone https://github.com/Saahi30/TEST12.git
    cd guess-the-number-game
  2. Open the game:
    • Double-click the gameindex.html file to launch the game in your browser.
  3. Guess a number:
    • Click on any number between 0 and 9.
    • Follow the hints provided until you guess correctly or run out of attempts!
  4. Replay: The game resets automatically when you win or lose.

๐ŸŒˆ Customization

Want to make it your own? Hereโ€™s how:

  • Change Colors: Update the gamecss.css file for personalized themes.
  • Game Range: Modify the random number range in the gamejs.ts file:
    let randomNum = Math.round(Math.random() * 20); // For a range of 0 to 20
  • Add More Levels: Increase or decrease attempts based on difficulty preference.

๐Ÿ“‚ Folder Structure

guess-the-number-game/
โ”œโ”€โ”€ gameindex.html      # Main HTML file
โ”œโ”€โ”€ game.css       # CSS for styling
โ”œโ”€โ”€ gamejs.ts        # JavaScript logic
โ””โ”€โ”€ README.md       # Game documentation (this file)

๐Ÿค Contributing

Contributions are welcome! If you have ideas or improvements, feel free to:

  1. Fork this repository.
  2. Create a new branch: git checkout -b feature-name.
  3. Commit your changes: git commit -m "Added a new feature".
  4. Push to the branch: git push origin feature-name.
  5. Open a pull request.

๐ŸŽ‰ Play, Enjoy, and Share!

Love the game? โญ the repository and share it with your friends!

Made with โค๏ธ by TONY STARK/b> ๐ŸŒŸ


Let the guessing begin! ๐Ÿ•น๏ธโœจ