#18712: Create test for Degeneracy in Normal Form Games
-------------------------------------+-------------------------------------
Reporter: jcampbell | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.8
Component: game theory | Resolution:
Keywords: Game Theory, | Merged in:
Normal Form Game, Degenerate | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | 789baf91d70242f5e174d4b5c71cedb16b342410
u/vinceknight/degenerate | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by ptigwe):
In the examples for the `best_responses` function, the second example for
the second player actually calculates the best response for the first
player.
{{{
sage: g.best_responses((1/2, 1/2), player=0)
}}}
Also, I think a value error should be raised when `player` is greater than
1. Currently the following happens.
{{{
g = NormalFormGame([matrix.identity(3)])
g.best_responses([1, 0, 0], 2)
.....
UnboundLocalError: local variable 'payoff_matrix' referenced before
assignment
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18712#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.