date and time created 88/10/19 15:33:10 by bostic
[unix-history] / usr / src / games / ching / ching.6
CommitLineData
5a28fe5a 1.\" @(#)ching.6 6.1 (Berkeley) %G%
36cc81c3 2.\"
5a28fe5a 3.TH CHING 6 ""
36cc81c3
KM
4.AT 3
5.SH NAME
204c0584 6ching \- the book of changes and other cookies
36cc81c3
KM
7.SH SYNOPSIS
8.B /usr/games/ching
9[ hexagram ]
36cc81c3
KM
10.SH DESCRIPTION
11The
12.I "I Ching"
13or
14.I "Book of Changes"
204c0584
KM
15is an ancient Chinese oracle that has been in use for centuries
16as a source of wisdom and advice.
36cc81c3
KM
17.PP
18The text of the
19.I oracle
204c0584 20(as it is sometimes known) consists of sixty-four
36cc81c3 21.I hexagrams,
204c0584
KM
22each symbolized by a particular arrangement of six straight (\-\-\-)
23and broken (\-\ \-) lines. These lines have values ranging
24from six through nine, with the even values indicating the broken lines.
36cc81c3 25.PP
204c0584 26Each hexagram consists of two major sections. The
36cc81c3 27.B Judgement
204c0584
KM
28relates specifically to the matter at hand (E.g.,
29\*(lqIt furthers one to have somewhere to go.\*(rq) while the
36cc81c3 30.B Image
204c0584
KM
31describes the general attributes of the hexagram and how they apply
32to one's own life (\*(lqThus the superior man makes himself strong
36cc81c3
KM
33and untiring.\*(rq).
34.PP
204c0584
KM
35When any of the lines have the values six or nine, they are moving lines;
36for each there is an appended judgement which becomes significant.
37Furthermore, the moving lines are inherently unstable and
38change into their opposites; a second hexagram
39(and thus an additional judgement) is formed.
36cc81c3 40.PP
204c0584
KM
41Normally, one consults the oracle by fixing the desired question
42firmly in mind and then casting a set of changes (lines)
43using yarrow\-stalks or tossed coins. The resulting hexagram
44will be the answer to the question.
36cc81c3 45.PP
204c0584 46Using an algorithm suggested by S. C. Johnson, the UNIX
36cc81c3 47.IR oracle " simply reads"
204c0584
KM
48a question from the standard input (up to an EOF)
49and hashes the individual characters in combination with the
50time of day, process id and any other magic numbers which happen to be lying
51around the system. The resulting value is used as the seed
52of a random number generator which drives a simulated coin\-toss divination.
36cc81c3
KM
53The answer is then piped through
54.BR nroff " for formatting"
204c0584 55and will appear on the standard output.
36cc81c3 56.PP
204c0584
KM
57For those who wish to remain steadfast in the old traditions,
58the oracle will also accept the results of a personal divination using,
59for example, coins. To do this, cast the change and then type the
60resulting line values as an argument.
36cc81c3 61.PP
204c0584
KM
62The impatient modern may prefer to settle for Chinese cookies; try
63.IR fortune (6).
36cc81c3
KM
64.SH "SEE ALSO"
65It furthers one to see the great man.
66.SH DIAGNOSTICS
67The great prince issues commands,
68.br
69Founds states, vests families with fiefs.
70.br
71Inferior people should not be employed.
72.SH BUGS
73Waiting in the mud
74.br
75Brings about the arrival of the enemy.
76.PP
77If one is not extremely careful,
78.br
79Somebody may come up from behind and strike him.
80.br
81Misfortune.