net.sourceforge.cilib.games.game.predatorprey
Class PredatorPreyGameScoringStrategy

java.lang.Object
  extended by net.sourceforge.cilib.games.game.scoring.GameScoringStrategy
      extended by 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

Constructor Summary
PredatorPreyGameScoringStrategy()
           
 
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
 

Constructor Detail

PredatorPreyGameScoringStrategy

public PredatorPreyGameScoringStrategy()
Method Detail

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.