Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.48 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.48 KB

Trivia

Screenshot of Trivia game

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.

Options

  • -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.

Building

Dependencies

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.

For Unix-based systems

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.