Skip to content

ENH: Implement concept of GameSubgameRep in C++/GameSubgame in Python #585

@tturocy

Description

@tturocy

Analogous to the way we derive GameStrategyRep from extensive games, we will now add a class in C++ GameSubgameRep, which will implement the notion of a subgame.

The cacheing and invalidation mechanism for this will be the same as how we manage strategies on changes to the game.

The following functions relating to subgames will be defined on GameRep:

  • GetParentSubgame(const GameSubgame &)
  • GetChildSubgames(const GameSubgame &)
  • GetRootSubgame()
  • GetTerminalSubgames()
  • GetInfosets(const GameSubgame &, const GamePlayer &)

These will also be added to Python in the straightforward way, with appropriate tests.

Metadata

Metadata

Assignees

Labels

c++Items which involve writing in C++cythonItems which involve coding in Cythonenhancement

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions