diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-09-20 23:36:57 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-09-20 23:36:57 +0000 |
commit | 258e8f6c8fefb0e8f3e410890a5003a86c897a41 (patch) | |
tree | 8f4987a0191afe0747e1b90d6c6c072684ebd9d2 /games/monop/monop.6 | |
parent | 9103334d21fd70396d762c44151c3eeee652b1e6 (diff) |
rand -> random; handle EOF; don't overflow on user input; check for calloc()
success; OpenBSD tags; some reformatting and ridding of unused variables.
Diffstat (limited to 'games/monop/monop.6')
-rw-r--r-- | games/monop/monop.6 | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/games/monop/monop.6 b/games/monop/monop.6 index 5412a616901..b841d6fe3d4 100644 --- a/games/monop/monop.6 +++ b/games/monop/monop.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: monop.6,v 1.8 1995/03/23 08:34:50 cgd Exp $ +.\" $OpenBSD: monop.6,v 1.2 1998/09/20 23:36:52 pjanzen Exp $ .\" .\" Copyright (c) 1980 The Regents of the University of California. .\" All rights reserved. @@ -40,17 +40,17 @@ .Nm monop .Nd Monopoly game .Sh SYNOPSIS -.Nm /usr/games/monop +.Nm .Op Ar file .Sh DESCRIPTION -.Nm Monop +.Nm is reminiscent of the Parker Brother's game Monopoly, and monitors a game between 1 to 9 users. It is assumed that the rules of Monopoly are known. The game follows the standard rules, with the exception that, if a property goes up for auction and there are only two solvent players, no auction is held and the property remains unowned. -.Nm +.Pp The game, in effect, lends the player money, so it is possible to buy something which you cannot afford. However, as soon as a person goes into debt, @@ -73,9 +73,9 @@ It is not possible to input a negative number, nor is it ever necessary. .Em A Summary of Commands : .Bl -tag -width item .It Ic quit -quit game: This allows you to quit the game. It asks you if you're sure. +quit game. It asks you if you're sure. .It Ic print -print board: This prints out the current board. +print current board. The columns have the following meanings (column headings are the same for the .Ic where , .Ic own holdings , @@ -104,58 +104,55 @@ If the property is land, this is the number of houses on it. Current rent on the property. If it is not owned, there is no rent. .El .It Ic where -where players are: Tells you where all the players are. +tell where players are. A `*' indicates the current player. .It Ic own holdings -List your own holdings, +list your own holdings, .Em i.e. , money, get-out-of-jail-free cards, and property. .It Ic holdings -holdings list: Look at anyone's holdings. +show holdings list: look at anyone's holdings. It will ask you whose holdings you wish to look at. When you are finished, type .Sq Ic done . .It Ic mortgage mortgage property: -Sets up a list of mortgageable property, and asks which you wish to mortgage. +sets up a list of mortgageable property, and asks which you wish to mortgage. .It Ic unmortgage unmortgage property: -Unmortgage mortgaged property. +unmortgage mortgaged property. .It Ic buy buy houses: -Sets up a list of monopolies on which you can buy houses. +sets up a list of monopolies on which you can buy houses. If there is more than one, it asks you which you want to buy for. It then asks you how many for each piece of property, giving the current amount in parentheses after the property name. If you build in an unbalanced manner (a disparity of more than one house within the same monopoly), -it asks you to re-input things. +it asks you to re-input. .It Ic sell sell houses: -Sets up a list of monopolies from which you can sell houses. +sets up a list of monopolies from which you can sell houses. It operates in an analogous manner to .Ic buy. .It Ic card -card for jail: -Use a get-out-of-jail-free card to get out of jail. +use a get-out-of-jail-free card to get out of jail. If you're not in jail, or you don't have one, it tells you so. .It Ic pay -pay for jail: -Pay $50 to get out of jail, from whence you are put on Just Visiting. +pay $50 to get out of jail, from whence you are put on Just Visiting. Difficult to do if you're not there. .It Ic trade -This allows you to trade with another player. -It asks you whom you wish to trade with, +trade with another player. +It asks you with whom you wish to trade, and then asks you what each wishes to give up. You can get a summary at the end, and, in all cases, it asks for confirmation of the trade before doing it. .It Ic resign -Resign to another player or the bank. +resign to another player or the bank. If you resign to the bank, all property reverts to its virgin state, and get-out-of-jail free cards revert to the deck. .It Ic save -save game: -Save the current game in a file for later play. +save the current game in a file for later play. You can continue play after saving, either by adding the file in which you saved the game after the .Nm monop @@ -165,11 +162,10 @@ command (see below). It will ask you which file you wish to save it in, and, if the file exists, confirm that you wish to overwrite it. .It Ic restore -restore game: -Read in a previously saved game from a file. +read in a previously saved game from a file. It leaves the file intact. .It Ic roll -Roll the dice and move forward to your new location. +roll the dice and move forward to your new location. If you simply hit the <RETURN> key instead of a command, it is the same as typing .Ic roll . @@ -183,3 +179,5 @@ Chance and Community Chest cards .El .Sh BUGS No command can be given an argument instead of a response to a query. +.Pp +While saving a game works pretty well, restoring one does not. |