Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Classes | Functions

SpLibertyPlayer.h File Reference

Liberty player, concentrates on low liberty stones. More...

#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.

Detailed Description

Liberty player, concentrates on low liberty stones.

Definition in file SpLibertyPlayer.h.


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 53 of file SpLibertyPlayer.cpp.

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

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


Sun Mar 13 2011 Doxygen 1.7.1