net.sourceforge.cilib.games.game.tetris
Class TetrisFeaturesInputStrategy
java.lang.Object
net.sourceforge.cilib.games.agent.neural.NeuralStateInputStrategy
net.sourceforge.cilib.games.game.tetris.TetrisFeaturesInputStrategy
public class TetrisFeaturesInputStrategy
- extends NeuralStateInputStrategy
This is a NeuralStateInputStrategy that gives certain specified features of a tetris game state as input to the Neural Network.
These feautures were taken from REFERENCE!
Others from REFERENCE
- Author:
- leo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TetrisFeaturesInputStrategy
public TetrisFeaturesInputStrategy()
amountInputs
public int amountInputs()
- get the amount of inputs that the Neural Network should have based on this input strategy
- Specified by:
amountInputs
in class NeuralStateInputStrategy
- Returns:
- the input count
getNeuralInputArray
public Vector getNeuralInputArray(NeuralAgent currentPlayer,
Game state)
- Get an input vector for the given game state
- Specified by:
getNeuralInputArray
in class NeuralStateInputStrategy
- Parameters:
currentPlayer
- the agent represented by the Neural Networkstate
- the current game state
- Returns:
- the input vector
isAltitudeDiff
public boolean isAltitudeDiff()
setAltitudeDiff
public void setAltitudeDiff(boolean altitudeDiff)
isColumnTransisitons
public boolean isColumnTransisitons()
setColumnTransisitons
public void setColumnTransisitons(boolean columnTransitions)
isConnectedHoles
public boolean isConnectedHoles()
setConnectedHoles
public void setConnectedHoles(boolean connectedHoles)
isHoles
public boolean isHoles()
setHoles
public void setHoles(boolean holes)
isLandingHeight
public boolean isLandingHeight()
setLandingHeight
public void setLandingHeight(boolean landingHeight)
isMaxWellDepth
public boolean isMaxWellDepth()
setMaxWellDepth
public void setMaxWellDepth(boolean maxWellDepth)
isNoBlocks
public boolean isNoBlocks()
setNoBlocks
public void setNoBlocks(boolean noBlocks)
isPileHeight
public boolean isPileHeight()
setPileHeight
public void setPileHeight(boolean pileHeight)
isRemovedLines
public boolean isRemovedLines()
setRemovedLines
public void setRemovedLines(boolean removedLines)
isRowTransitions
public boolean isRowTransitions()
setRowTransitions
public void setRowTransitions(boolean rowTransitions)
isSumWells
public boolean isSumWells()
setSumWells
public void setSumWells(boolean sumWells)
isWeightedBlocks
public boolean isWeightedBlocks()
setWeightedBlocks
public void setWeightedBlocks(boolean weightedBlocks)
isErodedShapeBlocks
public boolean isErodedShapeBlocks()
setErodedShapeBlocks
public void setErodedShapeBlocks(boolean erodedShapeBlocks)
Copyright © 2009 CIRG. All Rights Reserved.