net.sourceforge.cilib.games.game.scoring
Class WinLoseDrawValueScoringStrategy
java.lang.Object
net.sourceforge.cilib.games.game.scoring.GameScoringStrategy
net.sourceforge.cilib.games.game.scoring.WinLoseDrawValueScoringStrategy
public class WinLoseDrawValueScoringStrategy
- extends GameScoringStrategy
- Author:
- leo
This class assigns a fitness based upon the win/lose/draw result of the game and a value assosiated with each outcome.
If the outcome is a ScoreGameResult then assign the score attained as the fitness
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WinLoseDrawValueScoringStrategy
public WinLoseDrawValueScoringStrategy()
initializeMeasurements
public void initializeMeasurements(Game game)
- Initialize the game with the neccesary AgentMeasure's that the scoring strategy may require to calculate the Fitness
for all the Agents
- Specified by:
initializeMeasurements
in class GameScoringStrategy
- Parameters:
game
- the game to initilaise
assignPlayerScores
public void assignPlayerScores(Game game)
- Assign a Fitness to each Agent after the completion of a Game
- Specified by:
assignPlayerScores
in class GameScoringStrategy
- Parameters:
game
- the game object
getDrawValue
public Double getDrawValue()
setDrawValue
public void setDrawValue(Double drawValue)
getLoseValue
public Double getLoseValue()
setLoseValue
public void setLoseValue(Double loseValue)
getWinValue
public Double getWinValue()
setWinValue
public void setWinValue(Double winValue)
Copyright © 2009 CIRG. All Rights Reserved.