Functions | |
SgPointSet | GetRelevantMoves (GoBoard &bd, SgBlackWhite toPlay, bool useFilter) |
Get all legal moves. |
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().