subgames finds subgames contained in an extensive-form game.

subgames(game, quietly = FALSE)

Arguments

game

An extensive-form game defined by extensive_form().

quietly

If TRUE, a message telling how many subgames are found will not be displaed.

Value

A list of subgames.

Details

This function finds subgames of an extensive-form game defined by extensive_form() and returns the list of subgames. The node IDs of each subgame displayed with the game tree are taken from the original extensive-form game. In other words, the node ID of a subgame in the tree does not necessarily begins with 1.

Author

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