uchicago.src.sim.games
Class Game
java.lang.Object
|
+--uchicago.src.sim.games.Game
- Direct Known Subclasses:
- EnnGame
- public abstract class Game
- extends Object
Abstracts a prisoner's dilemma cooperation type game. Stores the
payoffs for each player depending on what the other player played.
|
Constructor Summary |
Game()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Game
public Game()
setPayoffs
public void setPayoffs(PayoffPair leftLeft,
PayoffPair leftRight,
PayoffPair rightLeft,
PayoffPair rightRight)
getP1Payoff
public float getP1Payoff(int onePlay,
int twoPlay)
getP2Payoff
public float getP2Payoff(int onePlay,
int twoPlay)
Bug reports and feature requests to RePast