guess-the-digit

1.0.1 • Public • Published

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:

  1. 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.
  2. 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
      

How to Play

  1. The game will generate a random secret digit between 1 and 10.
  2. You'll be prompted to guess the digit.
  3. Enter your guess.
  4. The game will provide feedback: "Higher" or "Lower."
  5. 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! 🎮🔢

Readme

Keywords

none

Package Sidebar

Install

npm i guess-the-digit

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

16.2 kB

Total Files

5

Last publish

Collaborators

  • hasnain-hsa