ipdlx.strategy
Class MRAND

java.lang.Object
  extended by ipdlx.Strategy
      extended by ipdlx.strategy.MRAND
All Implemented Interfaces:
PDValues, java.lang.Cloneable

public final class MRAND
extends Strategy

Random strategy

Author:
Tomek Kaczanowski, Jan Humble

Field Summary
 
Fields inherited from class ipdlx.Strategy
lastResult, nrOfOpponents, opponentMove, opponentsMoves
 
Fields inherited from interface ipdlx.PDValues
COOPERATE, DEFAULT_MISTAKE_LEVEL, DEFAULT_PUNISHMENT, DEFAULT_REWARD, DEFAULT_SUCKER, DEFAULT_TEMPTATION, DEFECT, EXIT, moves, PLAYER_A, PLAYER_B
 
Constructor Summary
MRAND()
           
 
Method Summary
 double getMove()
          doesn't need to call super.getFinalMove - it's random already
 
Methods inherited from class ipdlx.Strategy
clone, getAbbrName, getDescription, getFinalMove, getFullName, getName, getNumberOfOpponents, getOpponentMove, getOpponentsMoves, getResult, reset, setLastResult, setNumberOfOpponents, setOpponentMove, setOpponentsMoves, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MRAND

public MRAND()
Method Detail

getMove

public double getMove()
doesn't need to call super.getFinalMove - it's random already

Specified by:
getMove in class Strategy
Returns:
move - COOPERATE or DEFECT with 0.5 probability