score_TexasHoldEm: Score a hand or hands of Texas Hold'em

Description Usage Arguments Value Note

View source: R/score_TexasHoldEm.R

Description

# Hand Rank - Description 9 - Royal Flush (RF): Suited Ace high Straight (no tie breaker) 8 - Straight Flush (SF): Suited Straight (highest card in straight breaks tie) 7 - Four of a Kind (FK): Self explanatory (highest FK value breaks tie, highest 5th card breaks subsequent tie) 6 - Full House (FH): TK and P together (highest TK value breaks tie, highest P breaks subsequent tie) 5 - Flush (F): Suited hand (highest card breaks tie, highest 2nd card breaks subsequent tie, ..., highest 5th card breaks subsequent tie) 4 - Straight (S): Five in a row (highest card in straight breaks tie) 3 - Three of a Kind (TK): Self explanatory (highest TK value breaks tie, highest 4th card breaks subsequent tie, highest 5th card breaks subsequent tie) 2 - Two Pair (TP): Self explanatory (highest pair determines win, highest 2nd pair breaks subsequent tie, highest 5th card breaks subsequent tie) 1 - Pair (P): Self explanatory (highest pair determines win, highest 3rd card breaks subsequent tie, highest 4th card breaks subsequent tie, highest 5th card breaks subsequent tie) 0 - High card (HC): Self explanatory (highest card breaks tie, highest 2nd card breaks subsequent tie, ..., highest 5th card breaks subsequent tie)

Usage

1
score_TexasHoldEm(games, verbose = FALSE)

Arguments

games

a dealt hand of Texas Hold'Em from deal_TexasHoldEm

Value

Each hand is given a score based on their 7 cards available

Note

This can be turned into the list version by simply changing games to games\[\["players"\]\]


cmaerzluft/TexasHoldEm documentation built on June 11, 2021, 2:46 p.m.