From 990c4f145502a7567791968827b94288e1e2cc33 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 3 Jun 2021 13:07:47 -0700 Subject: [PATCH] doc/Modules.md: update C Jeopardy documentation --- doc/Modules.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/Modules.md b/doc/Modules.md index ac519cd0..b25970ae 100644 --- a/doc/Modules.md +++ b/doc/Modules.md @@ -547,18 +547,38 @@ Displays a random C fact. You may specify a search text to limit the random set ### cjeopardy C Jeopardy is loosely based on the Jeopardy! game show. The questions are phrased in the form of an answer and are answered in the form of a question. -The `cjeopardy` command isplays a random C Jeopardy question. You can specify a search text to limit the random set to those containing that text. Answer the questions with `what is ...?` -Can be used to skip the current question. +There are approximately 1,330 questions. All of the questions are sentences extracted from the C11 draft standard PDF, with certain nouns or phrases replaced with `this`. The goal of the game +is to answer the correct noun or phrase. + +The `cjeopardy` command displays a random C Jeopardy question. You can specify a search text to limit the random set to those containing that text. +Can be used to skip the current question after 5 minutes have elapsed. Usage: `cjeopardy [search text]` +Example game: + + !cjeopardy 1009) This macro expands to a integer constant expressions that can be used as the argument to the exit function to return successful termination status to the host environment. - what is EXIT_SUCCESS? + !what is EXIT_SUCCESS? pragma-: 'EXIT_SUCCESS' is correct! (1m15s) + pragma-: Next question: 288) Of an integer type, this is the number of bits it uses to represent values, including any sign and padding bits. + !w width + pragma-: 'width' is correct! (25s) + pragma-: Next question: 83) A byte with all bits set to 0 is called this. + !hint + Hint: n... ...r....r + !w null integer + jdoe: Sorry, 'null integer' is only 50.0% correct. + !w null character + !w null character + jdoe: 'null character' is correct! (2m15s) + pragma-: Too slow by 2s, jdoe got the correct answer! #### hint Displays a hint for the current C Jeopardy question. Each subsequent hint request reveals more of the answer. +When an answer can have multiple forms, the hint always chooses the longest one. + #### what #### w Answers a C Jeopardy question. `w` may be used as an alternative short-hand. @@ -570,7 +590,7 @@ Usage: `w ` #### filter `filter` can skip questions containing undesirable words such as wide-character or floating-point. -Usage: `filter ` or `filter clear` to clear the filter +Usage: `filter ` or `filter clear` to clear the filter. #### score Shows the personal C Jeopardy statistics for a player. If used without any arguments, it shows your own statistics.