1.0.2 • Published 6 months ago
javascript-hangman v1.0.2
Hangman CLI Game
A fun, interactive command-line Hangman game built with Node.js!
🎮 Features
- Choose difficulty levels: Easy, Medium, Hard
- Random word selection from a word list
- Colorful terminal output using chalk and gradient-string
- Animated text effects with chalk-animation
- Prevents duplicate guesses
📦 Installation
First, install the package globally (or use npx
to run without installation):
npm install -g hangman-cli-game
🚀 Usage
To start the game, simply run:
hangman
🛠 Dependencies
This project uses the following NPM packages:
- chalk - For colorful terminal output
- inquirer - For user input prompts
- gradient-string - For gradient text effects
- chalk-animation - For animated text
- figlet - For ASCII text banners
- nanospinner - For terminal spinners
📝 How to Play
- Enter your name.
- Choose a difficulty (Easy, Medium, Hard).
- Start guessing letters!
- Win by guessing the full word before you run out of attempts.
📜 License
This project is licensed under the MIT License.
Feel free to contribute, suggest improvements, or report issues!