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