net.sourceforge.cilib.games.game
Class GridGame
java.lang.Object
net.sourceforge.cilib.games.game.Game<GridGameState>
net.sourceforge.cilib.games.game.GridGame
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- TicTacToe
public abstract class GridGame
- extends Game<GridGameState>
- Author:
- leo
This class represents any game that takes place in a grid. It will use the
concrete GridGameState object
- See Also:
- Serialized Form
Methods inherited from class net.sourceforge.cilib.games.game.Game |
addMeasurement, assignPlayerScore, clearMeasurementData, clearMeasurements, display, gameOver, getAgentMeasurements, getClone, getClone, getCurrentIteration, getCurrentPlayer, getCurrentState, getDecisionState, getDomainForPlayer, getGameResult, getNextPlayerID, getPlayer, getPlayerCount, getPlayerIDList, getPlayerScore, getScoringStrategy, initializeAgent, initializeGame, playGame, playGame, setAgent, setAgent, setCurrentGameState, setCurrentPlayer, setEntityScore, setScoringStrategy, setSeedingStrategy, setStartPlayer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridGame
public GridGame()
GridGame
public GridGame(GridGame other)
- Parameters:
other
-
GridGame
public GridGame(GridGame other,
GridGameState newState)
- Parameters:
other
-
getWidth
public int getWidth()
getHeight
public int getHeight()
setWidth
public void setWidth(int width)
setHeight
public void setHeight(int height)
Copyright © 2009 CIRG. All Rights Reserved.