Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoRegionUtil.h File Reference


Detailed Description

Utility functions for GoRegion and GoRegionBoard.

Definition in file GoRegionUtil.h.

#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.


17 Jun 2010 Doxygen 1.4.7