Module rusty_freecell::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§

  • 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.
  • 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.
  • The number of tableau piles in the game.
  • The maximum number of undo levels the game supports.