00001 //---------------------------------------------------------------------------- 00002 /** @file SpInfluencePlayer.cpp 00003 See SpInfluencePlayer.h 00004 */ 00005 //---------------------------------------------------------------------------- 00006 00007 #include "SgSystem.h" 00008 #include "SpInfluencePlayer.h" 00009 00010 #include "GoInfluence.h" 00011 #include "SpLibertyPlayer.h" 00012 00013 //---------------------------------------------------------------------------- 00014 00015 int SpInfluenceMoveGenerator::Evaluate() 00016 { 00017 // We are Opponent since this is after executing our move 00018 SgBlackWhite player = m_board.Opponent(); 00019 int score = LibertyMinus2(m_board, player) 00020 - LibertyMinus2(m_board, SgOppBW(player)) 00021 + GoInfluence::Influence(m_board, player, 7, 3); 00022 return score; 00023 } 00024 00025