shiny_tournament: Axelrod Tournament Shiny App

Description Usage Arguments Value Author(s) Examples

Description

This function launches a Shiny app to run "Prisoner's Dilemma" matches between pairs of strategies.

Usage

1
2
shiny_tournament(payoff = matrix(c(3, 5, 0, 1), nrow = 2),
  custom_strategies = NULL, with_default_strategies = TRUE)

Arguments

payoff

A 2x2 payoff matrix of the tournament.

custom_strategies

A list of custom strategies, following the model of the list returned by defaultStrategies.

with_default_strategies

If TRUE, the tournament app uses the default strategies returned by defaultStrategies (the default), in addition of any custom strategy provided by the user. If FALSE, it uses only the custom strategies provided by the user.

Value

This function launches a Shiny application.

Author(s)

Simon Garnier, garnier@njit.edu

Examples

1
# TODO

swarm-lab/axelRod documentation built on May 30, 2019, 9:34 p.m.