Crate cardpack[][src]

Re-exports

pub use fluent::named::*;
pub use fluent::*;

Modules

Structs

BridgeBoard is a French Deck Pack that sorts and validates the hands dealt as a part of a Bridge hand.

Card is the core struct in the library. A Card is made up of a Rank, a Suit and weight, which is an integer that controls how a card is sorted in a Pile or as a part of a Vector.

A Pack is an immutable pile of cards. Packs are designed to be a flexible representation of a deck, stack, discard pile, or hand.

A Pile is a sortable collection of Cards.

Rank Struct for a Card. Examples of standard Card Ranks would include: Ace, Ten, and Deuce Joker, Death (Tarot), and Ober (Skat). The weight of the Rank determines how a Card is sorted relative to it’s Suit.

Suit struct for a playing card. Made up of the suit’s name, letter, and symbol. Supports internationalization through fluent template files.

Constants