guess-the-digit
v1.0.1
Published
a simple number guesser game
Downloads
3
Readme
Guess the Digit
Guess the Digit is a simple and entertaining number guessing game built in TypeScript. Test your intuition and see if you can crack the code!
Installation
To play the game, follow these steps:
Run via NPX (Recommended):
- Open your terminal or command prompt.
- Type the following command:
npx guess-the-digit
- Follow the prompts to guess the number.
Install Locally:
- Clone this GitHub repository to your local machine:
git clone https://github.com/HasnainHSA/TypeScript-Mastery-Projects.git
- Navigate to the project directory:
cd Number-guesser
- Install dependencies:
npm install
- Run the game:
npm start
- Clone this GitHub repository to your local machine:
How to Play
- The game will generate a random secret digit between 1 and 10.
- You'll be prompted to guess the digit.
- Enter your guess.
- The game will provide feedback: "Higher" or "Lower."
- Keep guessing until you find the correct digit!
Features
- Simple and intuitive gameplay.
- Randomized secret digit for replayability.
- Command-line interface for easy interaction.
Contributing
Contributions are welcome! If you'd like to enhance the game or fix any issues, feel free to submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
GitHub Repository: Guess the Digit
NPM Package: guess-the-digit
Feel free to customize the content, add badges, and make it your own! Happy coding! 🎮🔢