Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpRandomPlayer.cpp

Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 /** @file SpRandomPlayer.cpp
00003     See SpRandomPlayer.h
00004 */
00005 //----------------------------------------------------------------------------
00006 
00007 #include "SgSystem.h"
00008 #include "SpRandomPlayer.h"
00009 
00010 #include "GoEyeUtil.h"
00011 
00012 //----------------------------------------------------------------------------
00013 
00014 int SpRandomMoveGenerator::Score(SgPoint p)
00015 {
00016     if (  m_board.IsEmpty(p)
00017        && m_board.IsLegal(p)
00018        && ! GoEyeUtil::IsSinglePointEye(m_board, p, m_board.ToPlay())
00019        )
00020         return 1;
00021     else
00022         return INT_MIN;
00023 }
00024 
00025 //----------------------------------------------------------------------------
00026 


17 Jun 2010 Doxygen 1.4.7