Skip to content

laskolaskov/quizgame-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz Game for your terminal

Run it in your terminal and get ready to answer some questions!

The game is using the great free API available at https://opentdb.com/, enjoy.

Usage:

npx quizgame-cli [option]=[value] [option2]=[value2]...[optionN]=[valueN]

Example: npx quizgame-cli -c=sport -a=20 -d=medium

Options:

-h, --help, ?

Shows this help screen. No value required.

-a, --amount

Sets the amount of questions. Defaults to '10'.
Example: -a=15, --amount=3

-d, --difficulty

Sets the questions difficulty. Possible values: 'easy', 'medium', 'hard'. If not passed, loads questions with random difficulties.
Example: -d=easy, --difficulty=medium

-c, --category

Sets the questions category. If not passed, or category does not exist, loads questions from random categories.
Example: -c=sport, --category=math

Note:

Incorrect options and values will not trigger errors and the default values will be used instead.

Have a nice game!

About

Quiz game for your terminal :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published