Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

GoUctPlayoutPolicy< BOARD >::CaptureGenerator Class Reference

Incrementally keeps track of blocks in atari. More...

List of all members.

Public Member Functions

 CaptureGenerator (const BOARD &bd)
void StartPlayout ()
void OnPlay ()
void Generate (GoPointList &moves)
 Generate capture moves.

Private Attributes

const BOARD & m_bd
std::vector< SgPointm_candidates
 Anchor stones of blocks that need to be checked for atari.

Detailed Description

template<class BOARD>
class GoUctPlayoutPolicy< BOARD >::CaptureGenerator

Incrementally keeps track of blocks in atari.

Definition at line 167 of file GoUctPlayoutPolicy.h.


Constructor & Destructor Documentation

template<class BOARD>
GoUctPlayoutPolicy< BOARD >::CaptureGenerator::CaptureGenerator ( const BOARD &  bd  ) 

Member Function Documentation

template<class BOARD >
void GoUctPlayoutPolicy< BOARD >::CaptureGenerator::Generate ( GoPointList moves  ) 

Generate capture moves.

Parameters:
[out] moves The resulting list of capture moves. The passed in list is expected to be empty.

Definition at line 317 of file GoUctPlayoutPolicy.h.

References SgArrayList< T, SIZE >::IsEmpty(), GoUctPlayoutPolicy< BOARD >::CaptureGenerator::m_bd, GoUctPlayoutPolicy< BOARD >::CaptureGenerator::m_candidates, SgArrayList< T, SIZE >::PushBack(), and SG_ASSERT.

Referenced by GoUctPlayoutPolicy< BOARD >::GenerateMove().

template<class BOARD >
void GoUctPlayoutPolicy< BOARD >::CaptureGenerator::OnPlay (  ) 
template<class BOARD >
void GoUctPlayoutPolicy< BOARD >::CaptureGenerator::StartPlayout (  ) 

Member Data Documentation

template<class BOARD>
const BOARD& GoUctPlayoutPolicy< BOARD >::CaptureGenerator::m_bd [private]
template<class BOARD>
std::vector<SgPoint> GoUctPlayoutPolicy< BOARD >::CaptureGenerator::m_candidates [private]

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


Sun Mar 13 2011 Doxygen 1.7.1