org.moyoman.module.tactics
Interface Tactics

All Superinterfaces:
Cloneable, ModuleInterface, Serializable
All Known Implementing Classes:
SimpleTactics, TacticsImpl

public interface Tactics
extends ModuleInterface

The class that implements this interface will determine moves in the local context. This could be where to move in a fight, playing on a vital point, making a two space extension, or other moves which are good in the local area.

It is likely that implementations of this interface will want to use the output of the Tesuji and Connection modules.

This is a low-level module, and does not take strategic considerations into account, specifically, things like whether to sacrifice a group or not.


Field Summary
static float CONFIDENCE
           
 
Method Summary
 MoveDescriptorForest getCurrentPlayerKoThreats()
          Get sequences of moves where the current player makes the first two moves.
 MoveDescriptorForest getCurrentPlayerSequences()
          Get sequences of moves which are good in a tactical sense for the current player.
 MoveDescriptorForest getOpponentPlayerKoThreats()
          Get sequences of moves where the opponent player makes the first two moves.
 MoveDescriptorForest getOpponentPlayerSequences()
          Get sequences of moves which are good in a tactical sense for the opponent player.
 boolean isMoveUrgent(SingleGroup sg)
          Determine if the group is stable, or if another move is required.
 boolean isMoveUrgent(SingleLooseGroup slg)
          Determine if the loose group is stable, or if another move is required.
 void setImportantStones(Stone[] stones)
          Set the stones that are most important.
 
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

getCurrentPlayerSequences

public MoveDescriptorForest getCurrentPlayerSequences()
Get sequences of moves which are good in a tactical sense for the current player.

Returns:
A MoveDescriptorForest, which describes various sequences of moves. Each of the first moves in the sequences should be returned by getMoves() so that the relative merits of the different sequences can be determined.

getOpponentPlayerSequences

public MoveDescriptorForest getOpponentPlayerSequences()
Get sequences of moves which are good in a tactical sense for the opponent player.

Returns:
A MoveDescriptorForest, which describes various sequences of moves. Each of the first moves in the sequences should be returned by getMoves() so that the relative merits of the different sequences can be determined.

getCurrentPlayerKoThreats

public MoveDescriptorForest getCurrentPlayerKoThreats()
Get sequences of moves where the current player makes the first two moves.

Returns:
A MoveDescriptorForest, which describes various sequences of moves where the current player gets the first two moves. The first move is probably not rated very highly, but would be a good ko threat.

getOpponentPlayerKoThreats

public MoveDescriptorForest getOpponentPlayerKoThreats()
Get sequences of moves where the opponent player makes the first two moves.

Returns:
A MoveDescriptorForest, which describes various sequences of moves where the opponent player gets the first two moves. The first move is probably not rated very highly, but would be a good ko threat.

setImportantStones

public void setImportantStones(Stone[] stones)
Set the stones that are most important. The module should give preference to sequences in which these stones live if possible. The stones can be of either color.


isMoveUrgent

public boolean isMoveUrgent(SingleLooseGroup slg)
Determine if the loose group is stable, or if another move is required.

Parameters:
slg - The loose group in question.
Returns:
true if another move is required, or false.

isMoveUrgent

public boolean isMoveUrgent(SingleGroup sg)
Determine if the group is stable, or if another move is required.

Parameters:
sg - The group in question.
Returns:
true if another move is required, or false.