uchicago.src.sim.games
Class Game
java.lang.Object
uchicago.src.sim.games.Game
- Direct Known Subclasses:
- EnnGame
public abstract class Game
- extends java.lang.Object
Abstracts a prisoner's dilemma cooperation type game. Stores the
payoffs for each player depending on what the other player played.
- Version:
- 1.0 8/25/99
- Author:
- Nick Collier
|
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)