Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SpLibertyPlayer.cpp File Reference


Detailed Description

See SpLibertyPlayer.h.

Definition in file SpLibertyPlayer.cpp.

#include "SgSystem.h"
#include "SpLibertyPlayer.h"
#include "GoBoardUtil.h"
#include "SgConnCompIterator.h"

Go to the source code of this file.

Functions

int LibertyMinus2 (const GoBoard &board, SgBlackWhite color)
 counts surplus liberties of all blocks, those above 2.


Function Documentation

int LibertyMinus2 ( const GoBoard board,
SgBlackWhite  color 
)

counts surplus liberties of all blocks, those above 2.

penalty for less than 2 liberties.

Todo:
make threshold of 2 variable, experiment

Definition at line 55 of file SpLibertyPlayer.cpp.

References GoBoard::All(), GoBoard::AllEmpty(), and GoBoard::Size().

Referenced by SpInfluenceMoveGenerator::Evaluate(), and SpGreedyMoveGenerator::Evaluate().


17 Jun 2010 Doxygen 1.4.7