note other reasons for pclose to return -1; wait(2) -> wait4(2)
[unix-history] / usr / src / games / monop / monop.6
CommitLineData
fad63ddc
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
e3080b11 3.\"
fad63ddc
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)monop.6 6.3 (Berkeley) %G%
e3080b11
KM
17.\"
18.de Sc \" start command list macro
19.ie n .PD 0
20.el .PD 0.5
21.sp
22..
23.de Cm \" define command macro
24.TP 10
25.ie t .BR "\\$1" :
26.el .IR "\\$1" :
27..
28.de Ec \" end command macro
29.PD 1
30..
8d248fa2 31.TH MONOP 6 ""
e3080b11
KM
32.UC 4
33.SH NAME
34monop \- Monopoly game
35.SH SYNOPSIS
36.B /usr/games/monop
37[ file ]
38.SH DESCRIPTION
39.I Monop
bee33e9b 40is reminiscent of the Parker Brother's game Monopoly, and
e3080b11
KM
41monitors a game between 1 to 9 users.
42It is assumed that the rules of Monopoly are known.
bee33e9b 43The game follows the standard rules, with the exception that,
6bc80c78 44if a property goes up for auction and there are only two solvent players,
e3080b11
KM
45no auction is held and the property remains unowned.
46.PP
bee33e9b 47The game, in effect, lends the player money,
e3080b11
KM
48so it is possible to buy something which you cannot afford.
49However, as soon as a person goes into debt,
50he must \*(lqfix the problem\*(rq,
51.IR i.e. ,
bee33e9b
KM
52make himself solvent, before play can continue.
53If this is not possible, the player's property reverts to his debtee,
e3080b11 54either a player or the bank.
bee33e9b 55A player can resign at any time to any person or the bank,
e3080b11
KM
56which puts the property back on the board, unowned.
57.PP
58Any time that the response to a question is a
59.IR string ,
bee33e9b
KM
60e.g., a name, place or person, you can type `?' to get a list of valid answers.
61It is not possible to input a negative number, nor is it ever necessary.
e3080b11
KM
62.Sc
63.IR "A Summary of Commands" :
64.Cm quit
bee33e9b 65quit game: This allows you to quit the game. It asks you if you're sure.
e3080b11 66.Cm print
bee33e9b
KM
67print board: This prints out the current board.
68The columns have the following meanings (column headings are the same for the
e3080b11
KM
69.BR where ,
70.BR "own holdings" ,
71and
72.B holdings
73commands):
74.PP
75.RS 10
76.TP "\w'Name\ \ 'u"
77Name
78The first ten characters of the name of the square
79.TP
80Own
81The \fInumber\fR of the owner of the property.
82.TP
83Price
84The cost of the property (if any)
85.TP
86Mg
87This field has a `*' in it if the property is mortgaged
88.TP
89#
90If the property is a Utility or Railroad, this is the number
91of such owned by the owner.
92If the property is land, this is the number of houses on it.
93.TP
94Rent
bee33e9b 95Current rent on the property. If it is not owned, there is no rent.
e3080b11
KM
96.RE
97.Cm where
bee33e9b 98where players are: Tells you where all the players are.
e3080b11
KM
99A `*' indicates the current player.
100.Cm "own\ holdings"
101List your own holdings,
102.IR i.e. ,
103money, get-out-of-jail-free cards, and property.
104.Cm holdings
bee33e9b 105holdings list: Look at anyone's holdings.
e3080b11
KM
106It will ask you whose holdings you wish to look at.
107When you are finished, type \*(lqdone\*(rq.
108.Cm shell
bee33e9b 109shell escape: Escape to a shell. When the shell dies,
e3080b11
KM
110the program continues where you left off.
111.Cm mortgage
112mortgage property:
bee33e9b 113Sets up a list of mortgageable property, and asks which you wish to mortgage.
e3080b11
KM
114.Cm unmortgage
115unmortgage property:
116Unmortgage mortgaged property.
117.Cm buy
118buy houses:
119Sets up a list of monopolies on which you can buy houses.
120If there is more than one, it asks you which you want to buy for.
121It then asks you how many for each piece of property,
122giving the current amount in parentheses after the property name.
123If you build in an unbalanced manner
124(a disparity of more than one house within the same monopoly),
125it asks you to re-input things.
126.Cm sell
127sell houses:
128Sets up a list of monopolies from which you can sell houses.
6bc80c78
AH
129It operates in an analogous manner to
130.I buy.
e3080b11
KM
131.Cm card
132card for jail:
133Use a get-out-of-jail-free card to get out of jail.
bee33e9b 134If you're not in jail, or you don't have one, it tells you so.
e3080b11
KM
135.Cm pay
136pay for jail:
bee33e9b 137Pay $50 to get out of jail, from whence you are put on Just Visiting.
e3080b11
KM
138Difficult to do if you're not there.
139.Cm trade
140This allows you to trade with another player.
141It asks you whom you wish to trade with,
142and then asks you what each wishes to give up.
bee33e9b 143You can get a summary at the end, and, in all cases,
e3080b11
KM
144it asks for confirmation of the trade before doing it.
145.Cm resign
146Resign to another player or the bank.
bee33e9b 147If you resign to the bank, all property reverts to its virgin state,
e3080b11
KM
148and get-out-of-jail free cards revert to the deck.
149.Cm save
150save game:
151Save the current game in a file for later play.
152You can continue play after saving,
153either by adding the file in which you saved the game after the
154.I monop
bee33e9b 155command, or by using the
e3080b11
KM
156.I restore
157command (see below).
158It will ask you which file you wish to save it in,
159and, if the file exists, confirm that you wish to overwrite it.
160.Cm restore
161restore game:
162Read in a previously saved game from a file.
163It leaves the file intact.
164.Cm roll
165Roll the dice and move forward to your new location.
166If you simply hit the <RETURN> key instead of a command,
167it is the same as typing
168.IR roll .
169.Ec
170.SH AUTHOR
171Ken Arnold
172.SH FILES
173/usr/games/lib/cards.pck Chance and Community Chest cards
174.SH BUGS
175No command can be given an argument instead of a response to a query.