Skip to content

Refactor and implement own prior actions API#653

Merged
tturocy merged 10 commits intogambitproject:masterfrom
d-kad:issue_582-nodes
Dec 3, 2025
Merged

Refactor and implement own prior actions API#653
tturocy merged 10 commits intogambitproject:masterfrom
d-kad:issue_582-nodes

Conversation

@d-kad
Copy link
Copy Markdown
Contributor

@d-kad d-kad commented Dec 1, 2025

Refactoring:

  • Split BuildInfosetParents() into BuildOwnPriorActions() and BuildUnreachableNodes() for better separation of concerns

New API:

  • C++: GetOwnPriorAction(node) and GetOwnPriorActions(infoset)
  • Python: node.own_prior_action and infoset.own_prior_actions (properties)

Returns the last action(s) taken by a player before reaching a given node/infoset.

Closes #582

…ildInfosetParents` with `BuildOwnPriorActions` and `BuildUnreachableNodes`; (ii) Introduce `m_nodeOwnPriorAction` and `m_infosetOwnPriorActions`
@tturocy tturocy self-requested a review December 1, 2025 09:48
@d-kad d-kad requested a review from tturocy December 1, 2025 13:01
@tturocy tturocy merged commit 7289d00 into gambitproject:master Dec 3, 2025
11 of 15 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Computation of game properties Dec 3, 2025
@d-kad d-kad added this to the gambit-16.5.0 milestone Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

ENH: Add function returning the player's immediately preceding actions at an information set

2 participants