Skip to content

Saahi30/TEST12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! 🕹️✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published