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

Behaviour of mixed strategy profiles #4

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

Behaviour of mixed strategy profiles #4

tturocy opened this issue Jun 29, 2011 · 0 comments

Comments

@tturocy
Copy link
Owner

tturocy commented Jun 29, 2011

The current behaviour of mixed strategy profiles should be enhanced as follows:

  • __getitem__ and __setitem__ should also accept text labels as indices, indexing into strategies or players as appropriate.
  • __getitem__ returns a list of probabilities when indexing by a player. Instead, this should return a shim class that operates as a "window" onto the profile - so constructions like profile[player][strategy] = prob work as expected.
  • payoff should accept text labels as indices
  • strategy_value should accept text labels as indices
  • Implement strategy_values(player), which should return a list-like object representing the strategy value for each of a player's strategies

A parallel implementation for mixed strategy profiles with rational probabilities should also be implemented, where all numbers are converted to fractions.Fraction in the interface.

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