uchicago.src.sim.games
Class Game

java.lang.Object
  extended by 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()
           
 
Method Summary
 float getP1Payoff(int onePlay, int twoPlay)
           
 float getP2Payoff(int onePlay, int twoPlay)
           
 void setPayoffs(PayoffPair leftLeft, PayoffPair leftRight, PayoffPair rightLeft, PayoffPair rightRight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Game

public Game()
Method Detail

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)