one_pair: test for one pair

Description Usage Arguments Value Examples

View source: R/poker.R

Description

test for one pair

Usage

1

Arguments

x

a vector of cards

Value

logical(1)

Examples

1
2
3
4
5
6
7
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/play4YES documentation built on Feb. 28, 2022, 12:48 a.m.