one_pair: test for one pair

View source: R/poker.R

one_pairR Documentation

test for one pair

Description

test for one pair

Usage

one_pair(x)

Arguments

x

a vector of cards

Value

logical(1)

Examples

d = build_deck()
hand_1 = c(d[1], d[14], d[2:4] )
hand_1
one_pair(hand_1[1])
hand_2 = c(d[1], d[6], d[2:4] )
hand_2
one_pair(hand_2[2])

vjcitn/CSHstats documentation built on Nov. 3, 2024, 6:16 a.m.