Module game

Module game 

Source
Expand description

Manages the state of the FreeCell game

Modulesยง

print ๐Ÿ”’
Utilities for printing the state of the FreeCell game to the terminal

Structsยง

Game
Represents the state of a FreeCell game.
Move ๐Ÿ”’
Represents a move in the game, indicating the source and destination stack indices on the game field.

Constantsยง

CLUBS ๐Ÿ”’
Constant representing the suit of Clubs.
DECK_SIZE ๐Ÿ”’
The total number of cards in a standard deck.
DIAMONDS ๐Ÿ”’
Constant representing the suit of Diamonds.
FIELD_SIZE ๐Ÿ”’
The total size of the game field, including foundations, suits, free cells and tableau piles.
FOUNDATIONS ๐Ÿ”’
The number of foundation piles in the game, one for each suit.
FREE_CELLS ๐Ÿ”’
The number of free cells available for storing cards temporarily.
HEARTS ๐Ÿ”’
Constant representing the suit of Hearts.
RANKS ๐Ÿ”’
The total number of ranks in a standard deck of cards.
SPADES ๐Ÿ”’
Constant representing the suit of Spades.
SUITS ๐Ÿ”’
The total number of suits in a standard deck of cards.
TABLEAU_SIZE ๐Ÿ”’
The number of tableau piles in the game.
UNDO_LEVELS ๐Ÿ”’
The maximum number of undo levels the game supports.