Replies: 3 comments
-
|
Was going to open a new issue but commenting here instead: Add a function or attribute to easily get payoff values from Outcome object Another open issue #181 Just came across this and was confused. To get a payoff for a particular Player from an Outcome attached to a terminal node, you currently have to do: outcome.__getitem__(player.label)Would it make more sense to have something like: outcome.payoffswhich could return perhaps a dictionary with player label keys and integer values? Or maybe a function like: outcome.payoff(player) |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is an outstanding item which requires some thinking. The downside of having The crux of the design challenge (as I see it) is the following. Focusing for the moment on strategic form games (similar comments would apply to extensive games):
The second is in our view more careful and more powerful. However, for many use cases it's overkill, because one pure strategy profile equals one outcome by definition. I have been thinking the problem is in defining A more clear approach might be to have something like:
Then we could do I'm not very sure about a lot of this though. We need to test various potential ideas experimentally against tutorials/example codes to see how they play out in practice. Perhaps it would make sense to close out these two issues (which are both "squishy") and move this to a discussion thread instead for development and clarification? |
Beta Was this translation helpful? Give feedback.
-
|
Also worth putting here - we actually have no way to set an outcome in a strategic game, or otherwise manipulate the outcome structure. This is in part because of the muddling of concepts described above. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The approach we currently take for payoffs for outcomes is awkward, and also generally inconsistent with the rest of the interface. Give this a thorough review and revision.
Beta Was this translation helpful? Give feedback.
All reactions