org.moyoman.module.tesuji
Interface Tesuji

All Superinterfaces:
Cloneable, ModuleInterface, Serializable

public interface Tesuji
extends ModuleInterface

The class that implements this interface will determine good moves in the local context. It does not worry about the value of these moves in a whole board context.


Field Summary
static float CONFIDENCE
           
 
Method Summary
 MoveDescriptorForest getSequences()
          Return sequences of moves that are tesuji.
 void setImportantStones(Stone[] stones)
          Indicate which stones are important and should not be sacrificed.
 
Methods inherited from interface org.moyoman.module.ModuleInterface
clone, getMoves, getScheduler
 

Field Detail

CONFIDENCE

public static final float CONFIDENCE
See Also:
Constant Field Values
Method Detail

getSequences

public MoveDescriptorForest getSequences()
Return sequences of moves that are tesuji. Note that all moves may not be equally good, and some in fact may be bad where the opponent has a tesuji. The user of this module can call getMoves() to see which moves are bad. The sequences are so that the user of this module can evaluate the consequences of moves which this module might rate as bad, but might be good in the broader context.

Returns:
A MoveDescriptorForest which contains sequences of tesujis.

setImportantStones

public void setImportantStones(Stone[] stones)
Indicate which stones are important and should not be sacrificed. The stones can be of either color, to indicate either friendly stone which should be saved, or opponents stones which should be captured if possible.

Parameters:
stones - The stones which are important.