Renders card codes with their suit symbols, so "CA" prints as the ace of
clubs rather than as a bare string.
Value
format() returns a character vector of pretty card labels, the same
length as x, in the order x holds them. print() returns x invisibly
and is called for the side effect of printing; it sorts the cards into suit
blocks for reading, the way a player fans a hand, while x itself keeps its
order. [ returns an sk_card object, so subsetting a hand stays a hand.
See also
Other card functions:
sk_card(),
sk_full_deck(),
sk_points(),
sk_rank_of(),
sk_suit_of()
Examples
format(sk_full_deck()[1:4])
#> [1] "♣7" "♣8" "♣9" "♣J"
print(sk_card("C", "A"))
#> 1 Skat card: ♣A
sk_full_deck()[1:4]
#> 4 Skat cards: ♣J ♣9 ♣8 ♣7