org.vizzini.game.search
Class TranspositionTable

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

public class TranspositionTable
extends Object

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

Constructor Summary
TranspositionTable()
           
 
Method Summary
 void add(String key, int depth, int type, int value, IAction bestMove)
          Create a new entry using the given parameters and add it to the table.
 void add(TranspositionEntry entry)
          Add the given entry to the table.
 TranspositionEntry get(String key)
          Return the entry for the given key, or null if none is found.
 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
 

Constructor Detail

TranspositionTable

public TranspositionTable()
Method Detail

add

public void add(TranspositionEntry entry)
Add the given entry to the table.

Parameters:
entry -

add

public void add(String key,
                int depth,
                int type,
                int value,
                IAction bestMove)
Create a new entry using the given parameters and add it to the table.

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

get

public TranspositionEntry get(String key)
Return the entry for the given key, or null if none is found.

Parameters:
key -
Returns:

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