Description Usage Arguments Value Examples
Simulated a hand of Texas Hold'em for a desired number of players
1 2 3 4 5 6 | deal_cards(
n_players = 2,
n_hands = 1,
player_ids = NULL,
method = c("base", "tidy", "dt")
)
|
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) |
A completely dealt hand of Texas Hold'em in a data.frame/tibble/data.table form.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.