number-guesser-ts
v0.4.0
Published
This is a simple number guessing game built with TypeScript and Inquirer.js
Downloads
4
Readme
Guess The Number
This is a simple number guessing game built with TypeScript and Inquirer.js. This number guessing game can be used via the command line by running npx number-guesser-ts
or by adding it as a dependency with npm i number-guesser-ts
.
Installation
To use the number guessing game, follow these steps:
Install Node.js if you haven't already: Node.js Installation Guide
Open your terminal or command prompt.
Run the following command to install the calculator globally:
npm install -g number-guesser-ts
Usage
Open your terminal or command prompt.
To perform calculations, run:
npx number-guesser-ts
Follow the prompts to enter the first number, You've guessed the number.
The number guesser will display the result based on your input.
Example
$ npx number-guesser-ts
? Enter your guess: 5
? Too high! Try again.
? Enter your guess: 2
? Too high! Try again.
? Enter your guess: 4
? Congratulations! You've guessed the number 4 in 3 attempts.
GitHub Repository: Guess The Number
NPM Package: Guess The Number
License
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to explore the code, contribute, and use this calculator in your projects! 🚀🔢
Owner
Sufiyan Tahir