Cards::Deck
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(back : Cards::CardBack = CardBacks::Bordered.new, front : Cards::CardFront = CardFronts::Standard.new, jokers : Bool = true, cards : Array(Cards::Card) = [] of Card)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
any?(*args, **options)
Sourceany?(*args, **options, &)
Sourceback
Sourceback=(back : CardBack)
Sourcecards
Sourcecards=(cards : Array(Card))
Sourceempty?(*args, **options)
Sourceempty?(*args, **options, &)
Sourcefront
Sourcefront=(front : CardFront)
Sourcejokers?
Sourceshuffle!
Sourcesize(*args, **options)
Sourcesize(*args, **options, &)
Source