Pokex v0.2.0 Card View Source
The Card struct and core functions.
The structure Card contains the fields value
and suit
.
You can get the card’s score with score
Link to this section Summary
Functions
Compares two cards and returns true if the first one is of higher value than the second, else returns false
Returns true if the cards are of the same value or false if they aren’t
Returns an integer value as the score of each card
Link to this section Types
Link to this section Functions
Compares two cards and returns true if the first one is of higher value than the second, else returns false
Returns true if the cards are of the same value or false if they aren’t
Returns an integer value as the score of each card.
This depends on the card value i.e. Ace, Jack, 10, 2.
Integers returned are 2 to 14.