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
0
and10
. - Interactive UI: User-friendly interface with hover and click effects.
- Hints Provided: Get feedback to adjust your guess (
Pick a Lower Number
orPick 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.html
file to launch the game in your browser.
- Double-click the
- Guess a number:
- Click on any number between
0
and9
. - 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.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.
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! 🕹️✨