Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctKnowledge Class Reference

#include <GoUctDefaultPriorKnowledge.h>

Inheritance diagram for GoUctKnowledge:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base knowledge class.

Definition at line 14 of file GoUctDefaultPriorKnowledge.h.

Public Member Functions

 GoUctKnowledge (const GoBoard &bd)
virtual ~GoUctKnowledge ()
virtual void ProcessPosition (std::vector< SgMoveInfo > &moves)=0

Protected Member Functions

void Add (SgPoint p, float value, std::size_t count)
void Initialize (SgPoint p, float value, std::size_t count)
void ClearValues ()
void TransferValues (std::vector< SgMoveInfo > &outmoves) const

Protected Attributes

const GoBoardm_bd
SgArray< SgStatisticsBase<
float, std::size_t >, SG_PASS+1 > 
m_values


Constructor & Destructor Documentation

GoUctKnowledge::GoUctKnowledge ( const GoBoard bd  ) 

Definition at line 41 of file GoUctDefaultPriorKnowledge.cpp.

GoUctKnowledge::~GoUctKnowledge (  )  [virtual]

Definition at line 46 of file GoUctDefaultPriorKnowledge.cpp.


Member Function Documentation

void GoUctKnowledge::Add ( SgPoint  p,
float  value,
std::size_t  count 
) [protected]

Referenced by GoUctDefaultPriorKnowledge::AddLocalityBonus().

void GoUctKnowledge::ClearValues (  )  [protected]

Definition at line 60 of file GoUctDefaultPriorKnowledge.cpp.

References m_values, and SG_PASS.

void GoUctKnowledge::Initialize ( SgPoint  p,
float  value,
std::size_t  count 
) [protected]

Referenced by GoUctDefaultPriorKnowledge::ProcessPosition().

virtual void GoUctKnowledge::ProcessPosition ( std::vector< SgMoveInfo > &  moves  )  [pure virtual]

Implemented in GoUctDefaultPriorKnowledge.

void GoUctKnowledge::TransferValues ( std::vector< SgMoveInfo > &  outmoves  )  const [protected]

Definition at line 66 of file GoUctDefaultPriorKnowledge.cpp.

References SgUctSearch::InverseEval(), and m_values.

Referenced by GoUctDefaultPriorKnowledge::ProcessPosition().


Member Data Documentation

const GoBoard& GoUctKnowledge::m_bd [protected]

Definition at line 24 of file GoUctDefaultPriorKnowledge.h.

Referenced by GoUctDefaultPriorKnowledge::AddLocalityBonus(), GoUctDefaultPriorKnowledge::FindGlobalPatternAndAtariMoves(), and GoUctDefaultPriorKnowledge::ProcessPosition().

SgArray<SgStatisticsBase<float,std::size_t>,SG_PASS+1> GoUctKnowledge::m_values [protected]

Definition at line 26 of file GoUctDefaultPriorKnowledge.h.

Referenced by ClearValues(), GoUctDefaultPriorKnowledge::ProcessPosition(), and TransferValues().


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


17 Jun 2010 Doxygen 1.4.7