Skip to content

Instantly share code, notes, and snippets.

@jgarlick
Created February 16, 2012 11:09
Show Gist options
  • Save jgarlick/1844115 to your computer and use it in GitHub Desktop.
Save jgarlick/1844115 to your computer and use it in GitHub Desktop.
4.3BSD Monopoly
BSD MONOP(6)
NAME
monop - Monopoly game
SYNOPSIS
/usr/games/monop
DESCRIPTION
monop is reminiscent of the Parker Brothers game Monopoly for 1 to 9
players. The program assumes that the rules of Monopoly are known. It
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.
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, he must "fix the problem", (i.e., make himself solvent) before
play can continue. If this is not possible, the player's property
reverts to his debtee (either a player or the bank). A player can resign
at any time to any person or the bank, which puts the property back on
the board unowned.
Any time that the expected response to a question is a string, (for
instance, a name, place or person) you can type a question mark (?) to
get a list of valid answers. It is not possible to input a negative
number, nor is it ever necessary.
COMMANDS
quit Quit the game. Asks for confirmation.
print Print out the current board. The columns have the following
meanings:
Name The first ten characters of the name of the square
Own The player number of the owner of the property
Price The cost of the property (if any)
Mg This field has an asterisk (*) in it if the property is
mortgaged
# If the property is a Utility or Railroad, this is the
number of such owned by the owner. If the property is
land, this is the number of houses on it.
Rent Current rent on the property. If it is not owned, there
is no rent.
where Tell where all the players are. An asterisk (*) indicates the
current player.
own holdings
List your own holdings (money, "get out of jail free" cards, and
property).
holdings
Look at anyone's holdings. The program will ask you whose
holdings you wish to look at. When you are finished, type
"done".
shell Escape to a shell. When the shell dies, the program continues
where you left off.
mortgage
Display a list of mortgageable property. Asks which you wish to
mortgage.
unmortgage
Unmortgage mortgaged property.
buy Display a list of monopolies on which you can buy houses. If
there is more than one, asks you which you want to buy for, and
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), asks you to re-enter values.
sell Display a list of monopolies from which you can sell houses. It
operates in a manner analogous to buy.
card Use a "get out of jail free" card. Informs you if you're not in
jail, or you don't have such a card.
pay Pay $50 to get out of jail, whence you are put on the Just
Visiting space.
trade Trade with another player. Asks you whom you wish to trade with,
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 completing it.
resign 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.
save Save the current game in a file for later play. You can continue
play later on either by giving the save file's name as an
argument to the monop command, or by using the restore command
(see below). Asks you which file you wish to save to; if the
file exists, asks you to confirm that you wish to overwrite it.
restore Read in a previously saved game from a file. Leaves the file
intact.
roll Roll the dice and move forward to your new location. If you
simply press <RETURN> without entering a command, a roll is
performed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment