do-you-know-ranit
v1.0.0
Published
Do You Know Ranit Manik?
Downloads
9
Maintainers
Readme
Do You Know Ranit?
A fun and interactive CLI quiz game to test your knowledge about Ranit Manik. This game challenges players with questions about Ranit's background, skills, and social media presence. Get all the questions right, or face the consequences!
Table of Contents
- Features
- Installation
- How to Play
- Example
- Development
- Dependencies
- Contributing
- License
- Contact
- Acknowledgement
Features
- Animated rainbow title using
chalk-animation
- Beautiful console messages with
chalk
- Smooth gradient text with
gradient-string
- Interactive questions using
inquirer
- Engaging spinner animations with
nanospinner
- ASCII art congratulations with
figlet
Installation
Global Installation
To install and run the game globally, use:
npm install -g do-you-know-ranit
do-you-know-ranit
Using npx
To run the game without installing globally, use npx
:
npx do-you-know-ranit
How to Play
- The game will start with a welcome message and instructions.
- You will be asked to enter your name.
- Answer each question correctly to proceed to the next one.
- If you answer any question incorrectly, the game will end.
- Answer all questions correctly to win the game.
Example
$ do-you-know-ranit
Upon running the above command, you will see the animated title followed by a series of questions. Here's a sample interaction:
Do You Know RANIT?
HOW TO PLAY
I am a process on your computer.
If you get any question wrong I will be killed
So get all the questions right...
What is your name? (Player)
Where is Ranit currently pursuing his higher education?
1) College of Engineering & Management, Kolaghat
2) IIT Kharagpur
3) NIT Durgapur
4) Jadavpur University
Nice work [Player]. That's a legit answer
...
Congrats , [Player] !
You know Ranit well!
https://github.com/RanitManik/do-you-know-ranit/assets/138437760/258b00fb-f50e-4cad-913d-ed37b368af10
Development
To run the game locally without installing globally:
- Clone the repository:
git clone https://github.com/RanitManik/do-you-know-ranit.git
- Navigate to the project directory and install dependencies:
cd do-you-know-ranit
npm install
- Run the game:
node index.js
Dependencies
- chalk: Terminal string styling.
- inquirer: Interactive command line prompts.
- gradient-string: Beautiful gradient strings.
- chalk-animation: Animations for the terminal.
- figlet: Create ASCII art from text.
- nanospinner: Minimal and elegant terminal spinners.
Contributing
Feel free to submit issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License.
Contact
Acknowledgement
Inspired by fireship.io.