Commit | Line | Data |
---|---|---|
dc7f5a19 KB |
1 | .\" %sccs.include.proprietary.man% |
2 | .\" | |
3 | .\" @(#)quiz.6 6.2 (Berkeley) %G% | |
b9277a41 | 4 | .\" |
cdcb85c0 | 5 | .TH QUIZ 6 "" |
b9277a41 KM |
6 | .AT 3 |
7 | .SH NAME | |
8 | quiz \- test your knowledge | |
9 | .SH SYNOPSIS | |
10 | .B /usr/games/quiz | |
11 | [ | |
12 | .B \-i | |
13 | file ] | |
14 | [ | |
15 | .B \-t | |
16 | ] [ category1 category2 ] | |
17 | .SH DESCRIPTION | |
18 | .I Quiz | |
bbb88fd5 | 19 | gives associative knowledge tests on various subjects. |
b9277a41 KM |
20 | It asks items chosen from |
21 | .I category1 | |
22 | and expects answers from | |
23 | .IR category2 . | |
24 | If no categories are specified, | |
25 | .I quiz | |
bbb88fd5 | 26 | gives instructions and lists the available categories. |
b9277a41 KM |
27 | .PP |
28 | .I Quiz | |
bbb88fd5 KM |
29 | tells a correct answer whenever you type a bare newline. |
30 | At the end of input, upon interrupt, or when questions run out, | |
b9277a41 KM |
31 | .I quiz |
32 | reports a score and terminates. | |
33 | .PP | |
34 | The | |
35 | .B \-t | |
bbb88fd5 | 36 | flag specifies `tutorial' mode, where missed questions are repeated |
b9277a41 KM |
37 | later, and material is gradually introduced as you learn. |
38 | .PP | |
39 | The | |
40 | .B \-i | |
bbb88fd5 | 41 | flag causes the named file to be substituted for the default index file. |
b9277a41 | 42 | The lines of these files have the syntax: |
bbb88fd5 | 43 | .RS |
b9277a41 KM |
44 | .nf |
45 | .ta \w'alternate 'u | |
46 | line = category newline \(bv category `:' line | |
47 | category = alternate \(bv category `|' alternate | |
48 | alternate = empty \(bv alternate primary | |
49 | primary = character \(bv `[' category `]' \(bv option | |
50 | option = `{' category `}' | |
b9277a41 | 51 | .fi |
bbb88fd5 KM |
52 | .RE |
53 | .PP | |
54 | The first category on each line of an index file names an information file. | |
b9277a41 | 55 | The remaining categories specify the order and contents of |
bbb88fd5 | 56 | the data in each line of the information file. |
b9277a41 KM |
57 | Information files have the same syntax. |
58 | Backslash `\\' is used as with | |
59 | .IR sh (1) | |
bbb88fd5 | 60 | to quote syntactically significant characters or to insert transparent |
b9277a41 KM |
61 | newlines into a line. |
62 | When either a question or its answer is empty, | |
63 | .I quiz | |
64 | will refrain from asking it. | |
65 | .SH FILES | |
66 | /usr/games/quiz.k/* | |
67 | .SH BUGS | |
bbb88fd5 | 68 | The construct `a\||\|ab' doesn't work in an information file. |
b9277a41 | 69 | Use `a{b}'. |