Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpUtil Namespace Reference


Functions

SgPointSet GetRelevantMoves (GoBoard &bd, SgBlackWhite toPlay, bool useFilter)
 Get all legal moves.


Function Documentation

SgPointSet SpUtil::GetRelevantMoves ( GoBoard bd,
SgBlackWhite  toPlay,
bool  useFilter 
)

Get all legal moves.

Filters out moves into own safe territory with no opponent stones adjacent if useFilter.

Definition at line 16 of file SpUtil.cpp.

References GoBoard::AllEmpty(), GoRules::CaptureDead(), GoSafetySolver::FindSafePoints(), GoBoard::HasNeighbors(), SgPointSet::Include(), GoBoard::IsLegal(), GoBoard::Rules(), and SgOppBW().

Referenced by SpSimplePlayer::GenMove().


17 Jun 2010 Doxygen 1.4.7