don't redefine NULL
[unix-history] / usr / src / games / hack / hack.6
CommitLineData
449e79f7
KB
1.TH HACK 6 "31 March 1985"
2.UC 4
3.SH NAME
4hack \- exploring The Dungeons of Doom
5.SH SYNOPSIS
6.B /usr/games/hack
7[
8.B \-d
9.I directory
10]
11[
12.B \-n
13]
14[
15.B \-u
16.I playername
17]
18.br
19.B /usr/games/hack
20[
21.B \-d
22.I directory
23]
24.B \-s
25[
26.B \-X
27]
28[
29.I playernames
30]
31.SH DESCRIPTION
32.PP
33.I Hack
34is a display oriented dungeons & dragons - like game.
35Both display and command structure resemble rogue.
36(For a game with the same structure but entirely different display -
37a real cave instead of dull rectangles - try Quest.)
38.PP
39To get started you really only need to know two commands. The command
40.B ?
41will give you a list of the available commands and the command
42.B /
43will identify the things you see on the screen.
44.PP
45To win the game (as opposed to merely playing to beat other people high
46scores) you must locate the Amulet of Yendor which is somewhere below
47the 20th level of the dungeon and get it out. Nobody has achieved this
48yet and if somebody does, he will probably go down in history as a hero
49among heros.
50.PP
51When the game ends, either by your death, when you quit, or if you escape
52from the caves,
53.I hack
54will give you (a fragment of) the list of top scorers. The scoring
55is based on many aspects of your behaviour but a rough estimate is
56obtained by taking the amount of gold you've found in the cave plus four
57times your (real) experience. Precious stones may be worth a lot of gold
58when brought to the exit.
59There is a 10% penalty for getting yourself killed.
60.PP
61The administration of the game is kept in the directory specified with the
62.B \-d
63option, or, if no such option is given, in the directory specified by
64the environment variable HACKDIR, or, if no such variable exists, in
65the current directory. This same directory contains several auxiliary
66files such as lockfiles and the list of topscorers and a subdirectory
67.I save
68where games are saved.
69The game administrator may however choose to install hack with a fixed
70playing ground, usually /usr/games/lib/hackdir.
71.PP
72The
73.B \-n
74option suppresses printing of the news.
75.PP
76The
77.B \-u
78.I playername
79option supplies the answer to the question "Who are you?".
80When
81.I playername
82has as suffix one of
83.B \-T \-S \-K \-F \-C \-W
84then this supplies the answer to the question "What kind of character ... ?".
85.PP
86The
87.B \-s
88option will print out the list of your scores. It may be followed by arguments
89.B \-X
90where X is one of the letters C, F, K, S, T, W to print the scores of
91Cavemen, Fighters, Knights, Speleologists, Tourists or Wizards.
92It may also be followed by one or more player names to print the scores of the
93players mentioned.
94.SH AUTHORS
95Jay Fenlason (+ Kenny Woodland, Mike Thome and Jon Payne) wrote the
96original hack, very much like rogue (but full of bugs).
97.br
98Andries Brouwer continuously deformed their sources into the current
99version - in fact an entirely different game.
100.SH FILES
101.DT
102.ta \w'data, rumors\ \ \ 'u
103hack The hack program.
104.br
105data, rumors Data files used by hack.
106.br
107help, hh Help data files.
108.br
109record The list of topscorers.
110.br
111save A subdirectory containing the saved
112.br
113 games.
114.br
115bones_dd Descriptions of the ghost and
116.br
117 belongings of a deceased adventurer.
118.br
119xlock.dd Description of a dungeon level.
120.br
121safelock Lock file for xlock.
122.br
123record_lock Lock file for record.
124.SH ENVIRONMENT
125.DT
126.ta \w'HACKPAGER, PAGER\ \ \ 'u
127USER or LOGNAME Your login name.
128.br
129HOME Your home directory.
130.br
131SHELL Your shell.
132.br
133TERM The type of your terminal.
134.br
135HACKPAGER, PAGER Pager used instead of default pager.
136.br
137MAIL Mailbox file.
138.br
139MAILREADER Reader used instead of default
140.br
141 (probably /bin/mail or /usr/ucb/mail).
142.br
143HACKDIR Playground.
144.br
145HACKOPTIONS String predefining several hack options
146.br
147 (see help file).
148.br
149
150Several other environment variables are used in debugging (wizard) mode,
151like GENOCIDED, INVENT, MAGIC and SHOPTYPE.
152.SH BUGS
153.PP
154Probably infinite.
155Mail complaints to mcvax!aeb .