-
Notifications
You must be signed in to change notification settings - Fork 165
Issue 522 #524
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
Issue 522 #524
Changes from 3 commits
980ebfb
55dca4a
16714f0
efda6c3
87cf05c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,6 +169,7 @@ Information about the game | |
| Action.precedes | ||
| Action.prob | ||
| Action.plays | ||
| Action.power | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be |
||
|
|
||
| .. autosummary:: | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,9 +109,18 @@ class Action: | |
|
|
||
| @property | ||
| def plays(self) -> typing.List[Node]: | ||
| """Returns a list of all terminal `Node` objects consistent with it. | ||
| """Returns a list of all terminal `Node` objects consistent with the action. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simpler is just to say 'terminal nodes' rather than 'terminal Node objects' |
||
| """ | ||
| return [ | ||
| Node.wrap(n) for n in | ||
| self.action.deref().GetInfoset().deref().GetGame().deref().GetPlays(self.action) | ||
| ] | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Docstring has not been updated. It would be useful to write a brief explanation of what the 'veto' of an action is here - a few lines so the documentation is self-contained |
||
| @property | ||
| def power(self) -> typing.List[Node]: | ||
| """Returns power of the action. | ||
| """ | ||
| return [ | ||
| Node.wrap(n) for n in | ||
| self.action.deref().GetInfoset().deref().GetGame().deref().GetPower(self.action) | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.