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)
hand_2 = c(d[1], d[6], d[2:4] )
hand_2
one_pair(hand_2)

vjcitn/YESCDS documentation built on April 16, 2024, 1:03 p.m.