Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpInfluencePlayer.cpp

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


Sun Mar 13 2011 Doxygen 1.7.1