abstract class Cards::Deck

Included Modules

Direct Known Subclasses

Defined in:

cards/deck.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(back : Cards::CardBack = CardBacks::Bordered.new, front : Cards::CardFront = CardFronts::Standard.new, jokers : Bool = true, cards : Array(Cards::Card) = [] of Card) #

[View source]

Instance Method Detail

def any?(*args, **options) #

[View source]
def any?(*args, **options, &) #

[View source]
def back : CardBack #

[View source]
def back=(back : CardBack) #

[View source]
def cards : Array(Card) #

[View source]
def cards=(cards : Array(Card)) #

[View source]
def empty?(*args, **options) #

[View source]
def empty?(*args, **options, &) #

[View source]
def front : CardFront #

[View source]
def front=(front : CardFront) #

[View source]
def jokers? : Bool #

[View source]
def shuffle! #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]