@faisalkhandev/guess-game
v1.1.1
Published
A simple number guessing game CLI tool
Maintainers
Readme
🎯 Guess Game CLI - A Fun Number Guessing Game 🎯
🚀 Guess Game CLI is a simple and interactive number guessing game for the terminal, built with Node.js. Play directly in your terminal by guessing a number between 1 and 10! 🕹️
✨ Features
✅ Fun and interactive CLI experience
✅ Supports both --guess and -g flags
✅ Built using Commander.js
✅ Lightweight and fast
✅ Cross-platform (Windows, macOS, Linux)
📌 Installation
Install the package globally using npm:
npm install -g @faisalkhandev/guess-game
Or use it directly with npx (no installation required):
npx @faisalkhandev/guess-game --guess 5
🎮 How to Play
Simply run the command:
guess --guess
or use the short version:
guess -g
Example
guess --guess 7 or guess -g 7
If you guess the correct number, you win! Otherwise, the correct answer will be revealed.
📦 Usage in a Project
You can also use it in a Node.js project:
const guessGame = require("@faisalkhandev/guess-game"); guessGame();
🛠️ Development
If you want to contribute or modify the game:
git clone https://github.com/faisalkhandev/guessGamePackage.git
cd guessGamePackage
npm install
node guess.js --guess 5
📝 License This project is licensed under the MIT License.
📌 Created by Faisal Khan Dev 🚀
