Readonlydeckreference information about the deck this card belongs to (not required)
Readonlyrankthe rank of the card
Readonlysuitthe suit of the card
ReadonlytypeTells whether two cards are equivalent, accounting for a 'template card' not containing deck or joker reference
Optionalother: anythe card to compare to
if the cards are equivalent
Tells whether this card is wild
if it is wild
Get the string representation of a card
the string representation
StaticcompareStaticfromCreate a card from an object containing the normal fields
the object to grab attributes from
the card
StaticfromCreate a card from a string representation
the string to create the card from
the card
Class to represent cards in a deck