Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

number-guessing-game-cli-based-app

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.

number, guessing, game, typescript, node, inquirer

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

  1. Clone or download this repository to your local machine.
  2. Navigate to the project directory.
  3. Install dependencies using npm install inquirer.
  4. Run the game using npm start.
  5. Guess a number between 1 to 10 when prompted.
  6. The game will inform you if your guess is correct or incorrect.
  7. 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

  1. Run the game using the command npm start.
  2. Enter your guess when prompted.
  3. Receive feedback on your guess.
  4. 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.