cli-number-guessing-game-wth-login-and-registeration

1.0.1 • Public • Published

CLI Number Guessing Game with Login and Registration

Welcome to the CLI Number Guessing Game! This command-line application combines the fun of a number guessing game with user login and registration features.

Installation

You can quickly install this CLI game globally using npm:

npm install -g cli-number-guessing-game-wth-login-and-registeration

Usage

Once installed, simply run the following command in your terminal to start the game:

cli-number-guessing-game-wth-login-and-registeration

Follow the on-screen prompts to login or register and begin playing the game.

Gameplay

  1. Login or Register: Upon starting the game, you'll be prompted to choose between logging in or registering.

    • Registration: If you're new, select "Registration" and provide your username, full name, gender, and password. After successful registration, you'll be logged in automatically.

    • Login: For returning users, select "Login" and enter your username and password.

  2. Number Guessing Game: After logging in, you'll enter the number guessing game. Try to guess a randomly generated number between 0 and 9.

    • You'll have 5 chances to guess the correct number. After each guess, you'll be informed if your guess is correct and how many chances you have left.

    • If you guess the number correctly within 5 attempts, you win the game. Otherwise, you'll be prompted to try again later.

GitHub Repository

For source code and contributions, visit the GitHub repository.

npm Package

This game is also available as an npm package. Check it out on npmjs.

Author

Feedback

We welcome any feedback or issues you may have. Feel free to share them on the GitHub repository.

Package Sidebar

Install

npm i cli-number-guessing-game-wth-login-and-registeration

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

28.5 kB

Total Files

13

Last publish

Collaborators

  • muhammadshabbir