do-you-know-ranit

JavaScript CLI-based game that helps you get to know me better.

MIT License

Downloads
59
Stars
0

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!

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

  1. The game will start with a welcome message and instructions.
  2. You will be asked to enter your name.
  3. Answer each question correctly to proceed to the next one.
  4. If you answer any question incorrectly, the game will end.
  5. 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:

  1. Clone the repository:
git clone https://github.com/RanitManik/do-you-know-ranit.git
  1. Navigate to the project directory and install dependencies:
cd do-you-know-ranit
npm install
  1. Run the game:
node index.js

Dependencies

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.