net.sourceforge.cilib.games.game.predatorprey
Class PredatorPreyGameScoringStrategy
java.lang.Object
net.sourceforge.cilib.games.game.scoring.GameScoringStrategy
net.sourceforge.cilib.games.game.predatorprey.PredatorPreyGameScoringStrategy
public class PredatorPreyGameScoringStrategy
- extends GameScoringStrategy
- Author:
- leo
This is a GameScoringStrategy that will score a game of Predator Prey. It is score of 1 if the agent has one, and an additional value of 0.05 for every iteration of the game
the agent survived in the case of a Prey agent
Method Summary |
void |
assignPlayerScores(Game game)
Assign a Fitness to each Agent after the completion of a Game |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PredatorPreyGameScoringStrategy
public PredatorPreyGameScoringStrategy()
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
Copyright © 2009 CIRG. All Rights Reserved.