Skip to contents

Returns a character vector of sorted cards, collapsed by default.

Usage

print_hand_df(h, collapse = TRUE)

Arguments

h

a data.frame of 5 cards.

collapse

if TRUE, collapse the character vector.

Value

character vector of sorted cards.

Examples

deck <- new_deck_df()
(hand <- deal_hand_df(deck))
#>    rank suit
#> 43    5    S
#> 7     8    C
#> 32    7    H
#> 6     7    C
#> 9     T    C
print_hand_df(hand)
#> [1] "5S 7H 7C 8C TC"