org.moyoman.module.safety
Interface Safety
- All Superinterfaces:
- Cloneable, ModuleInterface, Serializable
- All Known Implementing Classes:
- SimpleSafety
- public interface Safety
- extends ModuleInterface
The class that implements this interface
will determine the safety of each
loose group on the board. This is
a relatively simple analysis, which will
be refined by subsequent modules. This class
is meant to be used by other classes such as
LifeAndDeath to determine whether to perform
a more intensive analysis on the group.
CONFIDENCE
public static final float CONFIDENCE
- See Also:
- Constant Field Values
getSafety
public float getSafety(SingleLooseGroup slg)
- Return the safety of this single loose group.
Note that a group being considered safe does
not mean that all of the stones are alive.
- Parameters:
slg
- The single loose group in question
- Returns:
- A value between 0.0 and 1.0,
with 1.0 being extremely safe, and 0.0 being extremely dead.