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