canasta v0.1.0 Canasta.Card View Source
Defines the card struct and functions working with it.
Link to this section Summary
Functions
Checks whether the card is a wild card or a natural card
Is it a red three?
Generates a new french deck (two decks) and shuffles it
This will be called on the card passed by the player to ensure the next check checking if the player has the card will not crash due to invalid card type
Check if the rank of the card is either ace, joker, king, queen or jack, or a number between 2 and 10
Check if the suit is hearts, diamonds, clubs or spades
Value of the card
Link to this section Functions
Checks whether the card is a wild card or a natural card.
Is it a red three?
Generates a new french deck (two decks) and shuffles it.
This will be called on the card passed by the player to ensure the next check checking if the player has the card will not crash due to invalid card type.
Check if the rank of the card is either ace, joker, king, queen or jack, or a number between 2 and 10.
Check if the suit is hearts, diamonds, clubs or spades.
Value of the card.
Red three = 100 3-7 = 5 8-King = 10 2, Ace = 20 Joker = 50