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? ๐
- Dynamic Gameplay: The computer selects a random number between
0and10. - Interactive UI: User-friendly interface with hover and click effects.
- Hints Provided: Get feedback to adjust your guess (
Pick a Lower NumberorPick a Higher Number). - Chances Reset: Fail? No worries, the game restarts automatically!
- Responsive Design: Works seamlessly on devices of all sizes.
- HTML: Structuring the interface.
- CSS: Styling the game for a visually appealing experience.
- JavaScript (ES6): Game logic and interactivity.
- Clone the repository:
git clone https://github.com/Saahi30/TEST12.git cd guess-the-number-game - Open the game:
- Double-click the
gameindex.htmlfile to launch the game in your browser.
- Double-click the
- Guess a number:
- Click on any number between
0and9. - Follow the hints provided until you guess correctly or run out of attempts!
- Click on any number between
- Replay: The game resets automatically when you win or lose.
Want to make it your own? Hereโs how:
- Change Colors: Update the
gamecss.cssfile for personalized themes. - Game Range: Modify the random number range in the
gamejs.tsfile: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.
guess-the-number-game/
โโโ gameindex.html # Main HTML file
โโโ game.css # CSS for styling
โโโ gamejs.ts # JavaScript logic
โโโ README.md # Game documentation (this file)
Contributions are welcome! If you have ideas or improvements, feel free to:
- Fork this repository.
- Create a new branch:
git checkout -b feature-name. - Commit your changes:
git commit -m "Added a new feature". - Push to the branch:
git push origin feature-name. - Open a pull request.
Love the game? โญ the repository and share it with your friends!
Made with โค๏ธ by TONY STARK/b> ๐
Let the guessing begin! ๐น๏ธโจ