🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

number-guessing-game-cli-based-app

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

number

FAQs

Package last updated on 07 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts