00001 //---------------------------------------------------------------------------- 00002 /** @file SpUtil.h 00003 Utility functions */ 00004 //---------------------------------------------------------------------------- 00005 00006 #ifndef SP_UTIL_H 00007 #define SP_UTIL_H 00008 00009 #include "SgBlackWhite.h" 00010 #include "SgPointSet.h" 00011 00012 class GoBoard; 00013 00014 //---------------------------------------------------------------------------- 00015 00016 namespace SpUtil 00017 { 00018 /** Get all legal moves. 00019 Filters out moves into own safe territory with no opponent stones 00020 adjacent if useFilter. */ 00021 SgPointSet GetRelevantMoves(GoBoard& bd, SgBlackWhite toPlay, 00022 bool useFilter); 00023 } 00024 00025 //---------------------------------------------------------------------------- 00026 00027 #endif // SP_UTIL_H 00028