net.sourceforge.cilib.games.game.tetris
Class TetrisFeaturesInputStrategy

java.lang.Object
  extended by net.sourceforge.cilib.games.agent.neural.NeuralStateInputStrategy
      extended by 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

Constructor Summary
TetrisFeaturesInputStrategy()
           
 
Method Summary
 int amountInputs()
          get the amount of inputs that the Neural Network should have based on this input strategy
 Vector getNeuralInputArray(NeuralAgent currentPlayer, Game state)
          Get an input vector for the given game state
 boolean isAltitudeDiff()
           
 boolean isColumnTransisitons()
           
 boolean isConnectedHoles()
           
 boolean isErodedShapeBlocks()
           
 boolean isHoles()
           
 boolean isLandingHeight()
           
 boolean isMaxWellDepth()
           
 boolean isNoBlocks()
           
 boolean isPileHeight()
           
 boolean isRemovedLines()
           
 boolean isRowTransitions()
           
 boolean isSumWells()
           
 boolean isWeightedBlocks()
           
 void setAltitudeDiff(boolean altitudeDiff)
           
 void setColumnTransisitons(boolean columnTransitions)
           
 void setConnectedHoles(boolean connectedHoles)
           
 void setErodedShapeBlocks(boolean erodedShapeBlocks)
           
 void setHoles(boolean holes)
           
 void setLandingHeight(boolean landingHeight)
           
 void setMaxWellDepth(boolean maxWellDepth)
           
 void setNoBlocks(boolean noBlocks)
           
 void setPileHeight(boolean pileHeight)
           
 void setRemovedLines(boolean removedLines)
           
 void setRowTransitions(boolean rowTransitions)
           
 void setSumWells(boolean sumWells)
           
 void setWeightedBlocks(boolean weightedBlocks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TetrisFeaturesInputStrategy

public TetrisFeaturesInputStrategy()
Method Detail

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 Network
state - 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.