Test your knowledge in an interactive Trivia game. You can choose from over 20 categories with more than 4000 questions. All questions are fetched from the Open Trivia Database.
-n <integer>
: Set the number of questions. Default is 10.-c <integer>
: Set the category ID of questions, to get list of categories use option '-l'. Default is all.-d <string>
: Set the difficulty of questions (easy / e, medium / m, hard / h). Default is all.-t <string>
: Set the type of questions (multiple / m, boolean / b). Default is all.-l
: List avaible categories.-f
: Disable all escape sequences.-h
: Show this help message and exit.
To build this game you need to have libcurl
installed.
On Debian/Ubuntu based systems you can install it using:
sudo apt install libcurl4-openssl-dev
This games also depends on libraries b64.c and cJSON, which are already included in the source code of this game (in the extern folder). Both of these libraries are licensed under the MIT license.
The easiest way to build the game is with make
. To get started, follow the instructions here. Note that while the game has not been tested on macOS, it should work in theory.