00001 //---------------------------------------------------------------------------- 00002 /** @file SpSafePlayer.cpp 00003 See SpSafePlayer.h 00004 */ 00005 //---------------------------------------------------------------------------- 00006 00007 #include "SgSystem.h" 00008 #include "SpSafePlayer.h" 00009 00010 #include "GoSafetySolver.h" 00011 00012 //---------------------------------------------------------------------------- 00013 00014 int SpSafeMoveGenerator::Evaluate() 00015 { 00016 SgBWSet safe; 00017 GoSafetySolver s(m_board); 00018 s.FindSafePoints(&safe); 00019 00020 // We are Opponent since this is after executing our move 00021 SgBlackWhite player = m_board.Opponent(); 00022 return safe[player].Size() - safe[SgOppBW(player)].Size(); 00023 } 00024 00025