Skip to contents

Returns the Skat card-point value (jack 2, queen 3, king 4, ten 10, ace 11, others 0). The card points of all 32 cards sum to 120.

Usage

sk_points(x, call = rlang::caller_env())

Arguments

x

An sk_card object or character vector of card codes.

call

The calling environment, used for error reporting.

Value

An integer vector of card-point values, the same length as x.

See also

sk_count_points() to total the points of a set of cards.

Other card functions: format.sk_card(), sk_card(), sk_full_deck(), sk_rank_of(), sk_suit_of()

Examples

sk_points(c("CA", "D10", "H7"))
#> [1] 11 10  0
sum(sk_points(sk_full_deck()))
#> [1] 120