Description Usage Arguments Details Value See Also Examples
Simulate a Hoot Owl Hoot! game
1 2 | simulate_game(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 strategy is a function taking a game
and returning a list
with elements card
and owl
for the next play. See
strategy_random
for an example.
A game end state
1 | simulate_game(2,2, strategy_random)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.