XPAT(6X)

NAME
xpat - generic patience game for X11

SYNOPSIS
xpat [ options ] [ seed ] [ saved game ]

DESCRIPTION
xpat is a generic patience game which can be used with different rule sets. It does understand the rules of the well-known Spider game, as well as Klondike and others. It features a flexible layout which responds to window resize commands and possibilities to customize the existing rules. The card images are black and red by default, but users can supply colour card images in XPM format.

RULE CUSTOMIZATION OPTIONS

-rules rule name
    (Resource: Rules) This option specifies the initial rule set for xpat. Valid rule names are Gypsy, Spider, FreeCell, Klondike, and Seahaven. The initial rule set may also be given by the name of the executable (capitalisation is important). A predefined rule set may be customized by the following options, but not all options apply to every rule set.

-slots slots
    (Resource: Slots) Use a different number of slots.

-decks decks
    (Resource: Decks) Use a different number of decks. Every deck has a full set of 52 cards. This option does also set the number of stacks. (To 4 times the number of decks, naturally.)

-decks decks
    (Resource: Decks) Use a different number of decks. Every deck has a full set of 52 cards. This option does also set the number of stacks. (To 4 times the number of decks, naturally.)

-facedown number
    (Resource: Facedown) Specifies the number of cards per slot which are initially dealt face-down (i.e. invisible).

-faceup number
    (Resource: Faceup) Specifies the number of cards per slot which are initially dealt face-up.

-jokers number
    (Resource: Jokers) Specifies the number of jokers in the game (increasing the number of cards). With jokers, you have to put all ordinary cards onto the stacks and keep the jokers on the slots.

-flips number
    (Resource: Flips) Specifies the maximum number of times you may flip the deck upside-down in Klondike.

-turn number
    (Resource: Turn) Specifies the number of cards which are turned each time you hit the deck in Klondike.

GRAPHIC OPTIONS

-display display
    Specifies on which display to run.

-geometry geometry
    (Resource: Geometry) Specifies the initial geometry.

-cards cardset
    (Resource: Cards) cardset is the filename of an external bitmap card set which will be used instead of the built-in cardset. There are two card sets, namely small and french. You can also give the full pathname of a cardset here.

-xpmdir xpmdir
    (Resource: XpmDir) Tells xpat to search xpmdir for colour replacements of the card images. The filenames searched for are Joker.xpm and Rank.Suit.xpm, where Rank is one of Two to Ten, or one of Jack, Queen, King, Ace. The display must be capable of displaying all images at the same time. For a 256-colour display, no more than 128 colours should be used for all card images together. An additional file, Cardback.xpm, may give you nice cardbacks. If the directory name xpmdir does not contain a slash, it is interpreted as a subdirectory of /usr/games/lib/xpat.

-bg color
    (Resource: TableColor) Sets the background color to color. The default is DarkKhaki.

-cb color
    (Resource: CardbackColor) Sets the background color of the cards to color. The default is SlateGrey. This option is not in effect when an XPM replacement for the cardback is used.

-markwidth width
    (Resource: MarkWidth) Sets the width of the dashed frame which marks selected cards. If this width is at least half of the card width, marked cards will be shaded. The default is to shade the cards.

-markcolor color
    (Resource: MarkColor) Sets the color of the marking frame.

-bfont font
    (Resource: ButtonFont) Sets the font to use for the button labels.

-sfont font
    (Resource: StatusFont) Sets the font to use for the message window.

-gapx number
    (Resource: GapX) Measures the distance between card piles in horizontal direction. The default value is 4.

-gapy number
    (Resource: GapY) Measures the distance between card piles in vertical direction. The default value is 4.

-bx number
    (Resource: ButtonGapX) Measures the distance between the buttons in horizontal direction. The default value is 4.

-by number
    (Resource: ButtonGapY) Measures the distance between the buttons in vertical direction. The default value is 4.

-aw number
    (Resource: ArrowWidth) Measures the width of the hint arrow.

-ah number
    (Resource: ArrowHeight) Measures the height of the hint arrow.

-sound 0
    (Resource: Sound) Disables sound. (-sound 1 can be used to override Xdefaults.) There are some more options, which allow you to make the window look strange.

FILES
(Directories may differ on your system.)
 /usr/games/bin/xpat
 /var/games/xpat.log
 /usr/doc/xpat/manual.dvi
 /usr/doc/xpat/COPYRIGHT.{GNU,spider,xpm}
 /usr/games/lib/xpat/small.cards
 /usr/games/lib/xpat/french.cards
 /usr/games/lib/xpat/success.au
 /usr/games/lib/xpat/giveup.au
 /usr/games/lib/xpat/goodbye.au
 /usr/games/lib/xpat/cannotsave.au and a number of subdirs of /usr/games/lib/xpat, containing sets of colour cards.

DIAGNOSTICS
Almost none. (Type 's' to see the version number. This is the man-page of xpat version 1.2)

BUGS
Please mail bug reports to mbi@mo.math.nat.tu-bs.de. Fixes are especially welcome.

SEE ALSO
spider(1), xsol(1)

AUTHORS
Heiko Eissfeldt and Michael Bischoff

COPYRIGHT
Copyright (c) 1994 by Heiko Eissfeldt and Michael Bischoff (mbi@mo.math.nat.tu-bs.de) Copyright (c) 1990 by David Lemke & Network Computing Devices, Inc.
(lemke@ncd.com)

Copyright 1990 Heather Rose and Sun Microsystems, Inc.

Copyright (c) 1989, Donald R. Woods and Sun Microsystems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. xpat was developed under Linux, the free UNIX for the IBM-PC and compatibles. xpat is based on the game spider. All new code which is not covered by spider copyrights is distributed by terms of the GNU General public license (GNU Copyleft).