A simple CLI trivia game. With 2 Versions. Needs both git and npm already on your machine.
Versions get their own branches.
- Hard-coded questions via Json.
- Supports multiple answers to one question using a any/all answer matching filter.
- Answers are manually typed and normalized.
- Multiple answers are split by commas.
- A user inputs the number corresponding to the correct answer.
- Dynamic questions and answers imported via OpenTDB API.
- Does not have the multi-answer logic (could not make it work with APIs).
- Asks for your name
- Gives you a welcome
- Logs user input
- modularized the codebase for scalability
- Custom looks using chalk
- Animations using chalk-animation and more
- Better comments
- etc.
{ "question": "What keyword declares a variable in java?", "answer": ["let"], "match": "all" }