CPAT(1)
๐ CPAT(1) ๐ โ cpat, the curses-based solitaire game, bestie
๐ธ NAME ๐ธ
cpat โ a curses-based solitaire game. That's the official name, and honestly it undersells the whole situation.
โจ SYNOPSIS โจ
cpat [-hfaRcV] [-s seed] [-w width]
๐ DESCRIPTION ๐
Okay so cpat is a collection of solitaire card games. Different games can be chosen from a menu at startup. The games implemented in this collection include Freecell, Klondike, Spider and 40 Thieves. Iconic lineup, no cap. ๐โจ
๐ OPTIONS ๐
Bestie, here are the command-line flags, all of them, in their full glory:
-hโ prints a short help message.-fโ causes the auto-moves to go faster. More of these = more speed.-wwidth โ set this option to alter the width of the playing cards. It can be set to an integer between2and7[default:3].-aโ forces the use of ascii characters for when your terminal does not render the suits correctly.-sseed โcpataccepts an optional integer argument to use as a seed for the deck shuffle.-Rโ this option disables the collection of game and high score statistics. Normally they are saved to the~/.cpat_scoresfile.-pโ prints statistics about overall game usage, i.e. number of trys and wins.-bโ prints the best scores attained for each game variation.-cโ allows any move to be undo-able (i.e. allows cheating). Normally you can undo only those moves that do not reveal any new information (e.g. moving cards from one column to another).-Vโ prints current version information.
๐ฎ IN GAME OPTIONS ๐ฎ
When playing a solitaire game, a number of commands are available at all times:
?โ Will display some help details similar to what you are reading now.rโ Will display the rules of the current game.uโ Will undo the previous move if this is allowed. You can undo only those moves that do not reveal any new information (e.g. moving cards from one column to another).tโ Will display credit where it is due.wโ Will display license and warranty information.sโ Will redraw the screen from scratch, in case something goes wrong with the display.qโ Will quit the current game and give you some statistics about the game you played (you will actually get the option to resume the game again).
๐ฆ HOW TO MOVE CARDS ๐ฆ
CPat is laid out with the general playing board in the centre of the screen. Each column on the main board is labelled with a letter starting at a going up to the number of columns in the particular game you are playing. Most of the games have foundation piles and these are placed in a board on the left side of the screen. These piles are labelled p for foundation [p]iles. On the right hand side there is usually another board which is used for different purposes depending on the game. This is labelled o for [o]ther.
Most move commands consist of a 2 character sequence preceded by an optional number. The first character denotes the source card and the second the destination pile. For example ad moves the bottom card from column a onto column d, bp moves the bottom card from column b onto the appropriate foundation pile (depending on its suit).
In general, a number is included in the command to signify the number of cards to move when moving a stack or sequence of cards. For example, 3bf will move a stack of 3 cards from column b to f. The type of stacks you are allowed to move depends on the game you are playing.
The o command is used to manipulate cards on the "other" board. This will depend on the game you are playing. In Klondike type games where there is a deck of cards to look through, two o characters will turn cards over onto the waste pile and an o followed by another letter will move a card off the waste pile. In Freecell type games, the "other" board contains the freecells and cards can be moved to and from these piles in the normal way, however when moving a card from the freecells a number is required to designate which card you want to move.
Cards can also be moved to the foundation piles automatically. To do this you use only the letter p. Two p characters will move one card (or pile depending on the game being played) to the foundation. If the pp is proceeded by a number, a maximum of that many cards (piles) will be moved at once. A capital P will move as many cards (piles) as possible. There is no particular order to the way the cards are moved.
๐ AUTHOR ๐
Trevor Carey-Smith <trev at highwater dot co dot nz> โ credit where it's due, bestie. ๐ซถ
Signing off from the User Manuals page for CPAT(1), source GAMES, dated 3 MAR 2006 โ bye bestie! ๐โจ
๐ฆ where this page comes from
- nixpkgs unstable: cpat 1.4.2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms