Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgUctGameInfo Struct Reference
[Monte Carlo tree search]

#include <SgUctSearch.h>

List of all members.


Detailed Description

Game result, sequence and nodes of one Monte-Carlo game in SgUctSearch.

Definition at line 221 of file SgUctSearch.h.

Public Member Functions

void Clear (std::size_t numberPlayouts)

Public Attributes

std::vector< float > m_eval
 The game result of the playout(s).
std::vector< SgMovem_inTreeSequence
 The sequence of the in-tree phase.
std::vector< std::vector<
SgMove > > 
m_sequence
 The sequence of the playout(s).
std::vector< bool > m_aborted
 Was the playout aborted due to maxGameLength (stored for each playout).
std::vector< const SgUctNode * > m_nodes
 Nodes visited in the in-tree phase.
std::vector< std::vector<
bool > > 
m_skipRaveUpdate
 Flag to skip RAVE update for moves of the playout(s).


Member Function Documentation

void SgUctGameInfo::Clear ( std::size_t  numberPlayouts  ) 

Definition at line 47 of file SgUctSearch.cpp.

References m_aborted, m_eval, m_inTreeSequence, m_nodes, m_sequence, and m_skipRaveUpdate.

Referenced by SgUctSearch::PlayGame(), and SgUctSearch::SearchOnePly().


Member Data Documentation

std::vector<bool> SgUctGameInfo::m_aborted

Was the playout aborted due to maxGameLength (stored for each playout).

Definition at line 240 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), and SgUctSearch::UpdateStatistics().

std::vector<float> SgUctGameInfo::m_eval

The game result of the playout(s).

The result is from the view of the player at the root.

Definition at line 226 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), SgUctSearch::SummaryLine(), SgUctSearch::UpdateRaveValues(), and SgUctSearch::UpdateTree().

std::vector<SgMove> SgUctGameInfo::m_inTreeSequence

The sequence of the in-tree phase.

Definition at line 229 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), SgUctSearch::PlayInTree(), SgUctSearch::SearchOnePly(), SgUctSearch::UpdateRaveValues(), and SgUctSearch::UpdateStatistics().

std::vector<const SgUctNode*> SgUctGameInfo::m_nodes

Nodes visited in the in-tree phase.

Definition at line 243 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), SgUctSearch::PlayInTree(), SgUctSearch::SummaryLine(), SgUctSearch::UpdateRaveValues(), and SgUctSearch::UpdateTree().

std::vector<std::vector<SgMove> > SgUctGameInfo::m_sequence

The sequence of the playout(s).

For convenient usage, they also include the moves from m_inTreeSequence, even if they are the same for each playout.

Definition at line 235 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), SgUctSearch::PlayoutGame(), SgUctSearch::SearchOnePly(), SgUctSearch::UpdateRaveValues(), and SgUctSearch::UpdateStatistics().

std::vector<std::vector<bool> > SgUctGameInfo::m_skipRaveUpdate

Flag to skip RAVE update for moves of the playout(s).

For convenient usage, the index corresponds to the move number from the root position on, even if the flag is currently only used for moves in the playout phase, so the flag is false for all moves in the in-tree phase.

Definition at line 251 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayGame(), SgUctSearch::PlayoutGame(), SgUctSearch::SearchOnePly(), and SgUctSearch::UpdateRaveValues().


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


17 Jun 2010 Doxygen 1.4.7