Description Usage Arguments Value
A function for simulating a deal to a set number of players in a set number of rounds.
1 | new_hand(empty_table, cards, n_hands, n_players)
|
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.