motti(6)

NAME
motti - a game where you try to conquer opponents' capitals

SYNOPSIS
motti mapfile [-c] [-d float] [-g float] [-h rows] [-m float] [-M float] [-o file] [-p players] [-r float] [-t float] [-w columns] [--help] [--version] [player...]

DESCRIPTION
motti is a game for two or up to 31 players on an array of square cells. The objective is to conquer other players' capitals by occupying and encircling enemy territories. motti is able to use a text based interface and open one or more X connections for play over network. Connections are specified with arguments player. The argument player is in format n,n,...:display. That is, a comma-separated list of player numbers and a colon and a network address to open the X display. As default motti opens one display on the display defined by the DISPLAY environment variable, if all players aren't assigned explicitly and no --curses option is set. When invoked with no arguments motti lists maps available in the default map directory. If the specified map isn't found in the current directory, motti tries to load the map from the default directory.

GAME CONTROLS
X interface has three buttons above the map: attack, defend and guerilla attack. Attack button has as many bars marked in it as there are attacks left. The buttons are black when that action is impossible and clicking them performs that action. On the right is the turn and remaining marks indicator. On map window, with default mouse configuration, left mouse button marks a territory, middle mouse button toggles the quick action and right mouse button performs the quick action. Quick action is marked with a thick border. Mouse button behaviour can be changed via resource motti.mousebuttonN , where N is the mouse button. Possible settings are mark, select, act, attack, defend, guerilla, reset, smart, halfsmart and none. Mark, select and act are as defined above, the three next perform the respective actions, reset clears all marks and smart and halfsmart make educated guesses about the action to make. Curses interface uses cursor keys to move the cursor, space bar to mark and keys z, x and c to do attack, defend and guerilla, respectiely. Key q quits.

GAME RULES
motti is a game for two or more players. Each player has a capital and other areas. All areas are square. An area can be either occupied or unoccupied. The gameplay is turn-based. Each player does on a turn one of three things: 1) Attack The player in turn marks six areas which to conquer. The areas have to be unconquered and either be on player's own area, or squarely adjacent to a square, which is owned by the player in turn and is occupied. The game picks one area randomly, and it becomes occupied, and owned by the player in turn. The player can make six attacks per turn. If there are less than six areas marked for attack, an attack can fail. 2) Defend The player in turn marks three unoccupied squares which are on an own territory and are unoccupied. These squares become occupied. 3) Guerilla Attack The player marks one square. The square must be unoccupied, on the player's own territory or squarely or diagonally adjacent to a square, which is owned by the player in turn and is occupied. The selected square becomes occupied and owned by the player in turn. If an area becomes encircled, so that there's no connection through the player's areas and other players' unoccupied areas to the player's capital, becomes the area unoccupied, and controlled by the encircling player/players. If the capital of a player is conquered by another player, all the areas of the defeated player are considered to be encircled and are divided as if they were encircled. When there are no such areas left, that can be conquered by other players, all areas become unoccupied again. The game ends when there's only one player left.

OPTIONS

-c, --curses
    Use curses interface instead of opening an X display.

-d, --distance-min=FLOAT
    The minimum distance of capitals from each other. Default: 8.0.

-g, --granularity=FLOAT
    Plasma granularity. Larger values create a more scattered terrain. Default: 0.3.

-h, --heigth=ROWS
    Map heigth. Default: 15.

-m, --plasma-min=FLOAT
    Minimum value of plasma template value range. Default: 0.0.

-M, --plasma-max=FLOAT
    Maximum value of plasma template value range. Default: 0.3.

-o, --output=FILE
    Save the game map to file FILE. Useful for saving generated maps or maps with a reduced number of players. This is not a save game option, since this option takes effect only before the actual game start.

-p, --players=PLAYERS
    The number of players used for map generation. Can also be used to reduce the number of players for other maps. The disabled players are taken from the remaining local players.

-r, --randomness=FLOAT
    Amount of randomness added to each cell. Default: 0.2.

-t, --threshold=FLOAT
    Each cell is calculated a value for it, roughly the inverse of the distance from all capitals summed minus the value of plasma cloud at this location plus a random number between 0 and the amount of randomness. Any cells having a greater value than this threshold are made land. Default: 0.15.

-w, --width=COLS
    Map width. Default: 20.

--help
    Display help message and exit.

--version
    Output version information and exit.

FILES

@prefix@/share/games/motti
    Default directory for maps.

@APPDEFAULTS@/Motti
    app-defaults file.

ENVIRONMENT

DISPLAY
    Address to open the default X display to.

BUGS
motti uses X resources somewhat badly. May report odd X error messages on exit.

AUTHOR
Kari Pahula <kari@lyseo.kotka.fi> Report bugs and comments to <bug-motti@gnu.org>

SEE ALSO
X(1), xauth(1), xhost(1)