new_hand: Deal the hands for a series of Texas Hold'em games

Description Usage Arguments Value

View source: R/new_hand.R

Description

A function for simulating a deal to a set number of players in a set number of rounds.

Usage

1
new_hand(empty_table, cards, n_hands, n_players)

Arguments

empty_table

An empty data.frame/tibble/data.table with a row for each hand and player. Most easily created using the deal_cards function to ensure the format and class is correct.

cards

a vector with every possible card code stored in card_cd. If you are playing with one deck this will have 52 rows and card_cd should uniquely identify cards. To play with multiple decks just concatenate multiple decks.

n_hands

The number of hands to produce

n_players

The number of players in each hand

Value

a data frame/tibble/data.table with the original empty_table input plus unique pocket cards for each row and community cards that are the same for everyone.


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