simulate_game: Simulate a Hoot Owl Hoot! game

Description Usage Arguments Details Value See Also Examples

Description

Simulate a Hoot Owl Hoot! game

Usage

1
2
simulate_game(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. This can also be a character of length 1 indicating one of the built-in strategies.

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

Details

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.

Value

A game end state

See Also

strategy_random

Examples

1

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