XPAT2(6)
π XPAT2 π β the generic patience game for X11, bestie
okay so you found the man page for xpat2 from the Games Manual, and honestly? we're about to have a moment. it's giving classic, it's giving solitaire but make it customizable, and I'm obsessed. let me walk you through it π
β¨ NAME β¨
xpat2 β a generic patience game for X11 π
πΈ SYNOPSIS πΈ
xpat2 [ options ] [ seed ] [ saved game ]
π¦ DESCRIPTION π¦
so xpat2 is the successor of xpat, a generic patience game that works with a bunch of different rule sets. not me being the main character of card games π
. it knows the rules of the well-known Spider game, plus Klondike and others β iconic behaviour, no cap.
it's got a flexible layout that actually responds when you resize the window (slay), and you can customize the existing rules however you want. xpat2 comes with either a bitmap-based card drawing routine or a pixmap based one β which one you get is selected at compile time. with the pixmap based routine, you get antialiased colour images of the rank and suit symbols. the bitmap card images are black and red by default, but bestie, you can supply images of complete colour cards in XPM format. periodt.
xpat2 may be compiled with the Athena widget set (or its nicer replacement, the Xaw3d widget set), or with a standard Xlib interface. the command line parameters and X resource names of these versions differ. β οΈ heads up: this manual page describes only the Athena widget version β for the Xlib options please refer to the xpat manual page.
π RULE CUSTOMIZATION OPTIONS π
-rulesrule name β (Resource:Tableau.rules)
this option specifies the initial rule set for xpat. valid rule names are Gypsy, Spider, FreeCell, Klondike, and Seahaven, Monte Carlo, Calculation, Canfield, Baker's Dozen, and others. π«Ά supply an invalid rule name to see a complete listing, iykyk.
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. (rude, but okay.)
-slotsslots β (Resource:Tableau.slots)
use a different number of slots.
-tmpstmps β (Resource:Tableau.tmps)
use a different number of temporary storage places.
-decksdecks β (Resource:Tableau.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. π math ate.
-facedownnumber β (Resource:Tableau.facedown)
specifies the number of cards per slot which are initially dealt face-down (i.e. invisible). π
-faceupnumber β (Resource:Tableau.faceup)
specifies the number of cards per slot which are initially dealt face-up.
-jokersnumber β (Resource:Tableau.jokers)
specifies the number of jokers in the game (which increases the number of cards). with jokers, you have to put all ordinary cards onto the stacks and keep the jokers on the slots.
-relaxednumber,-flipsnumber,-turnnumber,-rotationsnumber β (Resource:Tableau.relaxedtoTableau.rotations)
defines game specific customisation parameters. π
-rngnumber β (Resource:Tableau.rng)
this option affects the random number generator. rng 0 (used up to version 1.03 of xpat2) has been found to generate not uniformly distributed permutations π. you may activate it to be able to replay old saved games. the default is rng 1.
π GRAPHIC OPTIONS π
all standard X toolkit parameters may be given, such as:
-displaydisplay β specifies on which display to run.-geometrygeometry β (Resource:geometry) specifies the initial geometry.
other options are:
-cardscardset β (Resource:Tableau.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.
-xpmdirxpmdir β (Resource:Tableau.xpmdir)
tells xpat2 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 start with a dot or a slash, it is interpreted as a subdirectory of /usr/share/games/xpat.
-xpmclsxpmcls β (Resource:Tableau.xpmcls)
tells xpat2 to allow using colours of the given closeness when allocation of the real colour fails during the reading of an xpm file. this option is useful on 8-bit X-servers when many colours are already allocated by other applications (typically when using a KDE desktop). lowkey a lifesaver.
-tbcolor β (Resource:Tableau.background)
sets the background color to color. the default is LightSlateGrey.
-cbcolor β (Resource:Tableau.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.
-markwidthwidth β (Resource:Tableau.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. π
-markcolorcolor β (Resource:markColor)
sets the color of the marking frame.
-sound,-nosoundβ (Resource:Sound.state)
enables or disables sound. π₯
π§ NATIVE LANGUAGE SUPPORT π§
xpat2 has simple support for different languages. all messages which appear in the X11 window may be overloaded by files, as well as the key bindings. the typical support consists of an application-defaults file, a message file, and a keyboard file. possibly translated online-help files are also there. to select a different language, call xpat2 after setting the environment variable LANG to the desired value. some ISO3166 language codes will be mapped to their correspondig xpat2 directory names.
currently, italian and german versions are available, and fragments of a french and russian version. the russian version requires a special cyrillic font, sq01. the bdf-file is distributed with xpat2, you have to convert it into a format supported by your X-server (pcf, snf, ...).
π FILES π
/usr/games/xpat2/var/games/xpat2/xpat.log/usr/share/doc/xpat2/usr/share/games/xpat/small.cards/usr/share/games/xpat/french.cards/usr/share/games/xpat/audio/success.au/usr/share/games/xpat/audio/giveup.au/usr/share/games/xpat/audio/goodbye.au/usr/share/games/xpat/audio/cannotsave.au/usr/share/games/xpat/help.*/usr/share/games/xpat/hlp*
and a number of subdirs of /usr/share/games/xpat, containing sets of colour cards. π
π DIAGNOSTICS π
almost none. π (type v to see the version number. this is the man-page of xpat2 version 1.06, using Athena Widgets. the game may behave somewhat different when used with another widget set.)
π BUGS π
- if the window is too small, it can happen that not all information is displayed, e.g. some stacks of card are invisible as they are outside the visible space.
- correct cheat counting is not implemented in all rules. π
- only a few rule customisations are checked and meaningful.
- the Motif/Lesstif and Xview interfaces doesn't work reliable. any volunteers? π«Ά
xpat2uses a lot of colours when compiled with the module X-gfx2 and may therefore fail to start if you have an 8-bit or monochrome display. in this case, compile the game using the graphics loader X-gfx1, which uses the original card images from spider, or start the game using the option-cards french, which uses monochrome card graphics from the filefrench.cards. on 8-bit displays you can also experiment with the-xpmclsoption.- there is a problem with X-servers which are short on memory. in this case, some parts of the
xpat2window may be left blank after a resize event. you have to hit<ctrl-L>to get the window redrawn correctly. β¨
please mail bug reports to Michael.Bischoff@gmx.net. fixes are especially welcome. π
β SEE ALSO β
xpat(6), spider(1), xsol(1)
π AUTHORS π
Heiko Eissfeldt and Michael Bischoff
π COPYRIGHT π
Copyright (c) 1994 by Heiko Eissfeldt and Michael Bischoff (heiko@colossus.escape.de and 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 and xpat2 were 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).
and that's the whole thing bestie β this cutie was handmade back in June 1994, and the page you're reading is the XPAT2(6) man page from the Games Manual. go win some spider, mwah π
π¦ where this page comes from
- debian bookworm: xpat2 1.07-20+b1
- debian trixie: xpat2 1.07-20+nmu3+b1
- ubuntu jammy: xpat2 1.07-20
- ubuntu noble: xpat2 1.07-20ubuntu1
- ubuntu questing: xpat2 1.07-20+nmu3
- ubuntu resolute: xpat2 1.07-20+nmu4 Β· GPL-2+Spider
- ubuntu stonking: xpat2 1.07-20+nmu6 Β· GPL-2+Spider
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms