Module print

Module print 

Source
Expand description

Utilities for printing the state of the FreeCell game to the terminal

Constantsยง

CARD_PRINT_HEIGHT ๐Ÿ”’
Width of a printed card in characters.
CARD_PRINT_WIDTH ๐Ÿ”’
Width of a printed card in characters.
DEFAULT_TERMINAL_HEIGHT ๐Ÿ”’
Default height of the terminal window.
DEFAULT_TERMINAL_WIDTH ๐Ÿ”’
Default width of the terminal window.
RANK_STRINGS ๐Ÿ”’
Strings representing ranks in the order: empty, A, 2, 3, โ€ฆ, 10, J, Q, K.
SUIT_STRINGS ๐Ÿ”’
Strings representing suits in the order: empty, hearts, clubs, diamonds, spades.
TABLEAU_VERTICAL_OFFSET ๐Ÿ”’
Vertical printing offset (measured in characters) between cards that are stacked on top of each other on the tableau.
TYPICAL_BOARD_HEIGHT ๐Ÿ”’
Typical height of the game board in number of lines. This is used for vertically centering the win screen.