Description Usage Arguments Value See Also Examples
Simulate a Hoot Owl Hoot! game and record whether the game was a win or loss, how many cards were played, and how many suns were played.
1 2 | run_experiment(n_players, n_owls, strategy, n_cards_per_player = 3,
verbosity = 0)
|
n_players |
An integer specifying the number of players |
n_owls |
An integer specifying the number of owls |
strategy |
A function specifying a strategy for all players to use or a
list of length |
n_cards_per_player |
An integer specifying the number of cards for each player. |
verbosity |
An integer specifying how much detail to print out (0=none). |
A data.frame with these end game statistics: win: logical indicating if the game was won n_cards_played: the number of cards played by the players n_suns_played: the number of sun cards played by the players (max: 13) owl_score: the sum of the space ids for the owls (lower is better, min: 0) n_owls_left: the number of owls left on the board
simulate_game
, run_experiments
1 | run_experiment(n_players = 2, n_owls = 2, strategy = strategy_random)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.