class

Cards::Deck

Inherits JSON::Serializable < Reference < Object

Constructors

new(pull : JSON::PullParser)
Source
new(back : Cards::CardBack = CardBacks::Bordered.new, front : Cards::CardFront = CardFronts::Standard.new, jokers : Bool = true, cards : Array(Cards::Card) = [] of Card)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

any?(*args, **options)
Source
any?(*args, **options, &)
Source
back
Source
back=(back : CardBack)
Source
cards
Source
cards=(cards : Array(Card))
Source
empty?(*args, **options)
Source
empty?(*args, **options, &)
Source
front
Source
front=(front : CardFront)
Source
jokers?
Source
shuffle!
Source
size(*args, **options)
Source
size(*args, **options, &)
Source