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

Indexing outcome payoffs #2

Open
tturocy opened this issue Jun 14, 2011 · 0 comments
Open

Indexing outcome payoffs #2

tturocy opened this issue Jun 14, 2011 · 0 comments

Comments

@tturocy
Copy link
Owner

tturocy commented Jun 14, 2011

Outcome payoffs can be obtained via indexing using the __getitem__ operator. This takes an integer corresponding to the number the player appears in the list of players in the game.

  • Enhancement: Support indexing by player labels (text strings). If there are players with duplicate labels in the game, raise a suitable exception. (That is, it is up to the user to keep player labels unique within a game.)
  • Enhancement: Support indexing by player objects. The player object needs to belong to the appropriate game, otherwise an exception should be raised.
  • Additional test cases: Ensure that unexpected input raises appropriate exceptions.
tturocy pushed a commit that referenced this issue Aug 11, 2011
Implement rational precision strategy profiles
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