Modules§
- game_
state_ parser - Contains the function parse_file(…) which reads a text file containing a game state and converts it into a GameState object.
Structs§
- Card
- Represents one card in the game.
- Foundations
- Four stacks of cards, where each stack contains only cards of one suit, going from Ace upwards.
- Game
State - Move
- Represents one step in the game, where a card is moved from one position to another.
Enums§
- Colour
- Indicates the colour of a card.
- Position
- Indicates the position of a card.
- Suit
- Indicates the suit of a card.
Constants§
Traits§
Functions§
- rank_
from_ string - Converts a String to a Rank.
Type Aliases§
- Cascade
- A stack of arbitrary cards.
- Cascades
- Color
- Alias for the American spelling of Colour.
- Foundation
- A stack of cards of one suit, ordered from Ace upwards.
- Freecells
- May hold up to four arbitrary cards
- Game
State Id - Rank
- Indicates the rank of a card.