Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctDefaultRootFilter Class Reference

#include <GoUctDefaultRootFilter.h>

Inheritance diagram for GoUctDefaultRootFilter:

Inheritance graph
[legend]
List of all members.

Detailed Description

Default root filter used by GoUctPlayer.

Definition at line 16 of file GoUctDefaultRootFilter.h.

Public Member Functions

 GoUctDefaultRootFilter (const GoBoard &bd)
Pure virtual functions of GoUctRootFilter
std::vector< SgPointGet ()
 Get moves to filter in the current position.
Parameters
bool CheckLadders () const
 Prune unsuccesful ladder defense moves (unless the ladder would be short).
void SetCheckLadders (bool enable)
 See CheckLadders().

Private Attributes

const GoBoardm_bd
GoLadder m_ladder
bool m_checkLadders
 See CheckLadders().
int m_minLadderLength
 Minimum ladder length necessary to prune loosing ladder defense moves.
SgVector< SgPointm_ladderSequence
 Local variable in Get().


Constructor & Destructor Documentation

GoUctDefaultRootFilter::GoUctDefaultRootFilter ( const GoBoard bd  ) 

Definition at line 49 of file GoUctDefaultRootFilter.cpp.


Member Function Documentation

bool GoUctDefaultRootFilter::CheckLadders (  )  const

Prune unsuccesful ladder defense moves (unless the ladder would be short).

Definition at line 66 of file GoUctDefaultRootFilter.h.

References m_checkLadders.

Referenced by GoUctCommands::CmdParamRootFilter().

vector< SgPoint > GoUctDefaultRootFilter::Get (  )  [virtual]

Get moves to filter in the current position.

This function is invoked by the player before the search, it does not need to be thread-safe.

Implements GoUctRootFilter.

Definition at line 56 of file GoUctDefaultRootFilter.cpp.

References GoBoard::AllPoints(), GoModBoard::Board(), SgBWSet::Both(), Contains(), GoBensonSolver::FindSafePoints(), GoSafetySolver::FindSafePoints(), IsEmptyEdge(), GoBoard::IsLegal(), GoLadder::Ladder(), m_bd, m_checkLadders, m_ladder, m_ladderSequence, m_minLadderLength, SgOppBW(), and GoBoard::ToPlay().

void GoUctDefaultRootFilter::SetCheckLadders ( bool  enable  ) 

See CheckLadders().

Definition at line 71 of file GoUctDefaultRootFilter.h.

References m_checkLadders.

Referenced by GoUctCommands::CmdParamRootFilter().


Member Data Documentation

const GoBoard& GoUctDefaultRootFilter::m_bd [private]

Definition at line 48 of file GoUctDefaultRootFilter.h.

Referenced by Get().

bool GoUctDefaultRootFilter::m_checkLadders [private]

See CheckLadders().

Definition at line 53 of file GoUctDefaultRootFilter.h.

Referenced by CheckLadders(), Get(), and SetCheckLadders().

GoLadder GoUctDefaultRootFilter::m_ladder [private]

Definition at line 50 of file GoUctDefaultRootFilter.h.

Referenced by Get().

SgVector<SgPoint> GoUctDefaultRootFilter::m_ladderSequence [mutable, private]

Local variable in Get().

Reused for efficiency.

Definition at line 63 of file GoUctDefaultRootFilter.h.

Referenced by Get().

int GoUctDefaultRootFilter::m_minLadderLength [private]

Minimum ladder length necessary to prune loosing ladder defense moves.

See also:
m_checkLadders

Definition at line 58 of file GoUctDefaultRootFilter.h.

Referenced by Get().


The documentation for this class was generated from the following files:


17 Jun 2010 Doxygen 1.4.7