org.vizzini.game.search
Class TranspositionEntry

java.lang.Object
  extended by org.vizzini.game.search.TranspositionEntry

public class TranspositionEntry
extends Object

Provides an entry for a transposition table.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
static int TYPE_ALPHA
           
static int TYPE_BETA
           
static int TYPE_EXACT
           
 
Constructor Summary
TranspositionEntry(String key, int depth, int type, int value, IAction bestMove)
          Construct this object using the given parameters.
 
Method Summary
 IAction getBestMove()
           
 int getDepth()
           
 String getKey()
           
 int getType()
           
 int getValue()
           
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_EXACT

public static final int TYPE_EXACT
See Also:
Constant Field Values

TYPE_ALPHA

public static final int TYPE_ALPHA
See Also:
Constant Field Values

TYPE_BETA

public static final int TYPE_BETA
See Also:
Constant Field Values
Constructor Detail

TranspositionEntry

public TranspositionEntry(String key,
                          int depth,
                          int type,
                          int value,
                          IAction bestMove)
Construct this object using the given parameters.

Parameters:
key -
depth -
type -
value -
bestMove -
Method Detail

getBestMove

public IAction getBestMove()
Returns:
Return bestMove.

getDepth

public int getDepth()
Returns:
Return depth.

getKey

public String getKey()
Returns:
Return key.

getType

public int getType()
Returns:
Return type.

getValue

public int getValue()
Returns:
Return value.

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02