Skip to contents

Returns a character vector of cards, collapsed by default.

Usage

print_hand(hand, collapse = TRUE)

Arguments

hand

a hand of cards.

collapse

if TRUE, collapse the character vector.

Examples

(hand <- deal_hand(new_deck()))
#> [1] 47 33 34 24 21
print_hand(hand)
#> [1] "KS TD TH 8C 7D"