simulate_game: Simulate the cooperation/defecting behaviour in the game

Description Usage Arguments Value

View source: R/game.R

Description

Simulate the cooperation/defecting behaviour in the game

Usage

1
simulate_game(player_a, player_b, n_rounds)

Arguments

player_a

player taking the role of player a

player_b

player taking the role of player b

n_rounds

number of rounds to simulate

Value

tbl with $round_id, $a_id, $b_id, $player_a_cooperates, $player_b_cooperates, $outcome


mjaquiery/silly-smile-sim documentation built on Nov. 21, 2020, 9:15 a.m.