gambit icon indicating copy to clipboard operation
gambit copied to clipboard

Implement `Game.get_own_prior_actions`

Open d-kad opened this issue 3 months ago • 2 comments

Implement GameTreeRep::GetOwnPriorActions (C++) and Game.get_own_prior_actions (Python) to compute, for a given information set, the set of last actions taken by the player acting in the information set before reaching it

Closes #582

d-kad avatar Nov 11 '25 16:11 d-kad

@rahulsavani Do you agree with my analysis, or again am I misunderstanding something?

This sounds correct to me, and I like that we can just return the empty list for unreachable info sets, and indeed this will be a characterisation of them, right?

rahulsavani avatar Nov 12 '25 10:11 rahulsavani

Note that the tests now failing is because I made a clarification change to the text of the exception which now doesn't match the test. However given the discussion we probably won't be raising that exception anymore.

tturocy avatar Nov 12 '25 10:11 tturocy