https://github.com/codewithshabbir/cli-number-guessing-game
https://github.com/codewithshabbir/cli-number-guessing-game
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithshabbir/cli-number-guessing-game
- Owner: codewithshabbir
- Created: 2024-03-26T23:16:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-30T18:07:49.000Z (about 1 year ago)
- Last Synced: 2024-03-31T18:44:06.350Z (about 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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:
```bash
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:
```bash
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](https://github.com/codewithshabbir/cli-number-guessing-game).
## npm Package
This game is also available as an npm package. Check it out on [npmjs](https://www.npmjs.com/package/cli-number-guessing-game-wth-login-and-registeration).
## Author
- [Muhammad Shabbir](https://github.com/codewithshabbir)
## Feedback
We welcome any feedback or issues you may have. Feel free to share them on the GitHub repository.