net.sourceforge.cilib.games.game.tetris
Class TetrisScoringStrategy
java.lang.Object
net.sourceforge.cilib.games.game.scoring.GameScoringStrategy
net.sourceforge.cilib.games.game.tetris.TetrisScoringStrategy
public class TetrisScoringStrategy
- extends GameScoringStrategy
- Author:
- leo
This is an scoring strategy for the game of tetris. In this strategy certain features are measured and used
in the score as well as the number of lines cleared
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 |
TetrisScoringStrategy
public TetrisScoringStrategy()
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
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
Copyright © 2009 CIRG. All Rights Reserved.