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