Definition in file SpLibertyPlayer.h.
#include "SpSimplePlayer.h"
#include "SpMoveGenerator.h"
Go to the source code of this file.
Classes | |
class | SpLibertyMoveGenerator |
Tries to capture and escape with low liberty stones Blocks with few liberties are very important to this player. More... | |
class | SpLibertyPlayer |
Simple player using SpLibertyMoveGenerator. More... | |
Functions | |
int | LibertyMinus2 (const GoBoard &board, SgBlackWhite color) |
counts surplus liberties of all blocks, those above 2. |
int LibertyMinus2 | ( | const GoBoard & | board, | |
SgBlackWhite | color | |||
) |
counts surplus liberties of all blocks, those above 2.
penalty for less than 2 liberties.
Definition at line 55 of file SpLibertyPlayer.cpp.
References GoBoard::All(), GoBoard::AllEmpty(), and GoBoard::Size().
Referenced by SpGreedyMoveGenerator::Evaluate(), and SpInfluenceMoveGenerator::Evaluate().