abstract class Cards::Deck
- Cards::Deck
- Reference
- Object
Included Modules
- JSON::Serializable
Direct Known Subclasses
Defined in:
cards/deck.crConstructors
- .new(pull : JSON::PullParser)
- .new(back : Cards::CardBack = CardBacks::Bordered.new, front : Cards::CardFront = CardFronts::Standard.new, jokers : Bool = true, cards : Array(Cards::Card) = [] of Card)
Instance Method Summary
- #any?(*args, **options)
- #any?(*args, **options, &)
- #back : CardBack
- #back=(back : CardBack)
- #cards : Array(Card)
- #cards=(cards : Array(Card))
- #empty?(*args, **options)
- #empty?(*args, **options, &)
- #front : CardFront
- #front=(front : CardFront)
- #jokers? : Bool
- #shuffle!
- #size(*args, **options)
- #size(*args, **options, &)
Constructor Detail
def self.new(back : Cards::CardBack = CardBacks::Bordered.new, front : Cards::CardFront = CardFronts::Standard.new, jokers : Bool = true, cards : Array(Cards::Card) = [] of Card)
#