edu.stanford.multiagent.gamer
Class RandomGame

java.lang.Object
  |
  +--edu.stanford.multiagent.gamer.ParameterizedObject
        |
        +--edu.stanford.multiagent.gamer.Game
              |
              +--edu.stanford.multiagent.gamer.MatrixGame
                    |
                    +--edu.stanford.multiagent.gamer.RandomGame

public class RandomGame
extends MatrixGame

Return a uniformly random game


Field Summary
 
Fields inherited from class edu.stanford.multiagent.gamer.Game
actions, DEFAULT_HIGH, DEFAULT_LOW, intMult, intPayoffs, players, pMaxPayoff, pMinPayoff, pNormalize, symActions
 
Fields inherited from class edu.stanford.multiagent.gamer.ParameterizedObject
parameters
 
Constructor Summary
RandomGame()
          Construct a new game
 
Method Summary
protected  void checkParameters()
          None to check
 void doGenerate()
          Fill in the payoffs
protected  java.lang.String getGameHelp()
          Return the help screen
 void initialize()
          Initializes using preset parameter values
 
Methods inherited from class edu.stanford.multiagent.gamer.MatrixGame
getPayoff, initMatrix, setPayoff
 
Methods inherited from class edu.stanford.multiagent.gamer.Game
generate, getAutoNormPayoff, getDescription, getHelp, getName, getNormPayoff, getNumActions, getNumActions, getNumPlayers, getOutputPayoff, getOutputPayoff, getPayoff, getRangeHelp, parseActions, parsePlayersActions, parsePlayersSameNumberActions, parseSameNumberActions, setDescription, setName, setNormMinAndMax, setNumActions, setNumActions, setNumPlayers, writeGame
 
Methods inherited from class edu.stanford.multiagent.gamer.ParameterizedObject
getBooleanParameter, getDoubleParameter, getLongParameter, getParamDescription, getParameter, getParameters, getStringParameter, randomizeParameters, setParameter, setParameter, setParameters, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGame

public RandomGame()
           throws java.lang.Exception
Construct a new game

Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Description copied from class: Game
Initializes using preset parameter values

Overrides:
initialize in class Game
Throws:
java.lang.Exception

checkParameters

protected void checkParameters()
                        throws java.lang.Exception
None to check

Specified by:
checkParameters in class ParameterizedObject
Throws:
java.lang.Exception - if anything is wrong with the parameter values

getGameHelp

protected java.lang.String getGameHelp()
Return the help screen

Specified by:
getGameHelp in class Game

doGenerate

public void doGenerate()
Fill in the payoffs

Specified by:
doGenerate in class ParameterizedObject