Expand description
Manages the state of the FreeCell game
Modulesยง
- print ๐
- Utilities for printing the state of the
FreeCellgame to the terminal
Structsยง
- Game
- Represents the state of a
FreeCellgame. - 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.