run_experiment: Run a Hoot Owl Hoot! experiment

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
2
run_experiment(n_players, n_owls, strategy, n_cards_per_player = 3,
  verbosity = 0)

Arguments

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_players where element i specifies a strategy for player i. See details for more information.

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).

Value

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

See Also

simulate_game, run_experiments

Examples

1
run_experiment(n_players = 2, n_owls = 2, strategy = strategy_random)

BoardGameSimulator/HootOwlHoot documentation built on May 6, 2019, 7:58 a.m.