cli-number-guessing-game-wth-login-and-registeration
v1.0.1
Published
A CLI number guessing game with login and registration functionality.
Downloads
7
Maintainers
Readme
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
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.
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.