Skip to content

ENH: Add is_absent_minded property to Infoset#676

Merged
tturocy merged 18 commits into
gambitproject:masterfrom
d-kad:issue_578
Dec 12, 2025
Merged

ENH: Add is_absent_minded property to Infoset#676
tturocy merged 18 commits into
gambitproject:masterfrom
d-kad:issue_578

Conversation

@d-kad

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

Copy link
Copy Markdown
Contributor

Description:
Implement the absent-minded checker at the level of individual information sets.

Changes:

  • Implemented GameTreeRep::IsAbsentMinded(const GameInfosetRep *infoset) to check if a given infoset has absent-mindedness. The method relies on BuildUnreachableNodes().
  • Exposed the C++ method as a property is_absent_minded on the pygambit.Infoset class.
  • Refactored the absent-mindedness test suite to verify the property on specific Infoset objects rather than the Game

Closes: #578

@d-kad d-kad requested a review from tturocy December 8, 2025 11:00
@d-kad d-kad added this to the gambit-16.5.0 milestone Dec 9, 2025
Comment thread src/games/gametree.cc Outdated
Comment thread src/games/gametree.cc Outdated
Comment thread src/games/gametree.cc Outdated
Comment thread src/games/gametree.h Outdated
Comment thread src/pygambit/infoset.pxi Outdated
Comment thread tests/test_infosets.py Outdated
@d-kad d-kad requested a review from tturocy December 10, 2025 11:47
Comment thread src/games/game.h Outdated
Comment thread src/games/gametree.cc Outdated
Comment thread src/pygambit/infoset.pxi Outdated
Comment thread tests/test_infosets.py Outdated
Comment thread ChangeLog Outdated
@tturocy tturocy merged commit f925ffb into gambitproject:master Dec 12, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Add function returning whether an information set is absent-minded

2 participants