number-guessing-game-cli-based-app
v1.0.0
Published
This is the number guessing game. The computer will generate a random number between 1 and 100 and you have to guess it. You will be given 10 chances to guess the number. If you guess the number correctly, you win. If you run out of chances, you lose.
Downloads
7
Maintainers
Readme
Number Guessing Game
Welcome to the Number Guessing Game! Test your luck and see if you can guess the randomly generated number between 1 to 10.
How to Play
- Clone or download this repository to your local machine.
- Navigate to the project directory.
- Install dependencies using
npm install inquirer
. - Run the game using
npm start
. - Guess a number between 1 to 10 when prompted.
- The game will inform you if your guess is correct or incorrect.
- You can choose to play again after each round.
Features
- Randomly generates a number between 1 to 10.
- Allows the user to input their guess.
- Notifies the user if their guess is correct or incorrect.
- Offers the option to play again.
Requirements
- Node.js installed on your machine.
- npm (Node Package Manager) installed on your machine.
Usage
- Run the game using the command
npm start
. - Enter your guess when prompted.
- Receive feedback on your guess.
- Choose to play again or exit the game.
Author
Engr. Jalal Saleem
License
This project is licensed under the MIT License - see the LICENSE file for details.