Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Namespaces | Functions

GoRegionUtil.h File Reference

Utility functions for GoRegion and GoRegionBoard. More...

#include "SgBlackWhite.h"
#include "SgVector.h"
#include "SgPoint.h"

Go to the source code of this file.

Namespaces

namespace  GoRegionUtil

Functions

bool GoRegionUtil::StaticIs1VitalAndConnected (const GoBoard &board, const SgPointSet &pts, SgBlackWhite color)
 Check for 1-vitality, as explained in [Mueller 95, p.
bool GoRegionUtil::Has2SureLiberties (const GoBoard &board, const SgPointSet &pts, SgBlackWhite color, const SgVector< SgPoint > &boundaryAnchors)
 Test if a point set is 2-vital for color.
bool GoRegionUtil::Has2IPorEyes (const GoBoard &board, const SgPointSet &pts, SgBlackWhite color, const SgVector< SgPoint > &boundaryAnchors)
 Test if pts has 2 IP or eyes.
bool GoRegionUtil::IsSingleBlock (const GoBoard &board, const SgPointSet &pts, SgBlackWhite color)
 Do pts belong to only one block? pts must be non-empty.
bool GoRegionUtil::IsSmallRegion (const GoBoard &board, const SgPointSet &pts, SgBlackWhite opp)
 A region is called small iff its interior is completely filled by opponent stones (or there is no interior).
void GoRegionUtil::FindCurrentAnchors (const GoBoard &board, const SgVector< SgPoint > &origAnchors, SgVector< SgPoint > *currentAnchors)
 Find anchors of all blocks represented by origAnchors that are present in current board position.

Detailed Description

Utility functions for GoRegion and GoRegionBoard.

Definition in file GoRegionUtil.h.


Sun Mar 13 2011 Doxygen 1.7.1