Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement, test, document node properties #11

Open
tturocy opened this issue Jul 29, 2011 · 0 comments
Open

Implement, test, document node properties #11

tturocy opened this issue Jul 29, 2011 · 0 comments

Comments

@tturocy
Copy link
Owner

tturocy commented Jul 29, 2011

There is a boilerplate Node class in the Cython interface, wrapping the C++ class GameNode. The following operations should be implemented:

  • Read-only property 'infoset' (corresponds to C++ GetInfoset())
  • Read-only property 'player' (corresponds to C++ GetPlayer())
  • Read-only property 'parent' (C++ GetParent())
  • Read-only property 'prior_action' (C++ GetPriorAction())
  • Read-only property 'next_action' (C++ GetNextAction())
  • Read-only property 'prior_sibling' (C++ GetPriorSibling())
  • Read-only property 'next_sibling' (C++ GetNextSibling())
  • Read-only property 'is_terminal' (C++ IsTerminal())
  • Read-only property 'outcome' (C++ GetOutcome(). SetOutcome() also exists but will be handed in a separate issue.)
  • Member function is_successor_of (C++ IsSuccessorOf())
  • Member function is_subgame_root (C++ IsSubgameRoot())

Most of these properties can return players, nodes, etc. which are null. They should be rendered as 'None' in the Python interface.

In addition, these and the other existing operations should be documented, and entries made into the test suite.

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

No branches or pull requests

1 participant