sim_game()
simulates plays expected in a normal-form
game.
sim_game_br(
game,
n_periods,
init1 = NULL,
init2 = NULL,
omega = 0,
cons1 = NULL,
cons2 = NULL
)
An object of normal_form
class defined by
normal_form()
.
A positive integer specifying how many times the game is played within each sample.
Player 1's first strategy. If not specified, a strategy is randomly selected from the player's strategy set.
Player 2's first strategy. If not specified, a strategy is randomly selected from the player's strategy set.
A numeric value between 0 and 1 to control the degree of inertia
in each player's behavior. If omega = 1
, ach player does not
change their choices over time. If omega = 0
, each player does not
stick to their previous choice at all.
A named list of parameters contained in
game$payoff$payoffs1
that should be treated as constants, if any.
A named list of parameters contained in
game$payoff$payoffs2
that should be treated as constants, if any.
data.frame containing the history of the game played.
Simulate plays expected in a normal-form game defined by
normal_form()
when each player chooses the best response to the
other player's previous move.