deal_cards: Create a new set of Texas Hold'em hands

Description Usage Arguments Value Examples

View source: R/deal_cards.R

Description

Simulated a hand of Texas Hold'em for a desired number of players

Usage

1
2
3
4
5
6
deal_cards(
  n_players = 2,
  n_hands = 1,
  player_ids = NULL,
  method = c("base", "tidy", "dt")
)

Arguments

n_players

numeric(). The number of players you wish to have in the game. Must be >= 2.

n_hands

numeric() The number of hands you wish to simulate. Must be >= 1.

player_ids

Optional. A vector of IDs for each player you wish to be in the game.

method

character(). What R method should be used for this game: "base" (R), "tidy" (tidyverse), "dt (data.table)

Value

A completely dealt hand of Texas Hold'em in a data.frame/tibble/data.table form.

Examples

1
2
3
deal_cards(n_players = 2, n_hands = 10, method = "base")
deal_cards(n_players = 10, n_hands = 2, method = "tidy")
deal_cards(n_players = 2, n_hands = 1, method = "dt")

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