seq_extensive transforms a seq_form game defined by seq_form into an extensive_form game.

seq_extensive(game, ...)

Arguments

game

A sequential_form object created by seq_form(). The game's type must be "matrix".

...

Other parameter used to define an extensive-form game.

Value

An object of "extensive_form" class.

See also

Author

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp

Examples

g1 <- seq_form(
  players = c("Leader", "Follower"),
  s1 = c("R", "S", "P"),
  s2 = c("R", "S", "P"),
  payoffs1 = c(0, -1, 1, 1, 0, -1, -1, 1, 0),
  payoffs2 = c(0, 1, -1, -1, 0, 1, 1, -1, 0))
g1e <- seq_extensive(g1)

g1e2 <- seq_extensive(g1, direction = "right", color_palette = "Accent")