BSD 3 development
[unix-history] / usr / man / man6 / adventure.6
CommitLineData
a041d4b0
BJ
1.TH ADVENTURE 6
2.SH NAME
3adventure \- an exploration game
4.SH SYNOPSIS
5.B /usr/games/adventure
6.SH DESCRIPTION
7The object of the game is to
8locate and explore Colossal Cave, find the treasures hidden there,
9and bring them back to the building with you.
10The program is
11self-describing to a point, but part of the game is to discover
12its rules.
13.PP
14To terminate a game, type
15`quit';
16to save a game for later resumption, type
17`suspend'.
18Interrupt,
19quit,
20EOT, or hanging up the phone will all perform a
21suspend
22operation.
23.PP
24.I Adventure
25keeps a log in /usr/games/advlog of each game played.
26Each
27time a game terminates, a line is appended to that file containing
28the user, date, score, and number of turns.
29This log is intended
30to let you compare scores with fellow adventurers.
31Whether or not a game is logged is controlled by a toggle that is examined
32at the end of the game.
33Its initial state is "on", to indicate that logging
34is to take place.
35The command "log" inverts the toggle and reports its new
36state.
37.PP
38The "suspend" command results in writing a file named
39.I adv.susp
40in your home directory. This file contains the information needed
41to restart the game; its presence is checked during initialization to see
42if a game is being resumed.
43.SH FILES
44/usr/games/advfiles/*
45.br
46/usr/games/advlog
47.br
48$HOME/adv.susp
49.SH BUGS
50There can be only one suspended game per numeric
51user id;
52simultaneous conflicting suspends can wipe each other out.