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 action probabilities #12

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

Implement action probabilities #12

tturocy opened this issue Jul 29, 2011 · 0 comments

Comments

@tturocy
Copy link
Owner

tturocy commented Jul 29, 2011

At an information set belonging to the chance player, actions have assigned probabilities. This issue discusses exposing the interface to setting and getting these probabilities.

In C++, these operations are done using operations on GameInfosetRep, namely, GetActionProb and SetActionProb.

In Python, we propose to implement a property of Action, tentatively named 'prob', which will serve to get and set these probabilities.

As actions are numbers, they follow the usual convention in libgambit for dealing with numbers (the same as we use for representing payoffs). Therefore, 'prob' should be settable via a fractions.Fraction or decimal.Decimal, and should return the same, appropriate to whichever representation is used in the game, just as with payoffs.

Note that there is no constraint in libgambit that probabilities need to sum to one at any given time.

Relevant entries should be added to the documentation, and entries made in the test suite to exercise this property.

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