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

SgUctGameInfo Struct Reference
[Monte Carlo tree search]

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

#include <SgUctSearch.h>

List of all members.

Public Member Functions

void Clear (std::size_t numberPlayouts)

Public Attributes

std::vector< SgUctValuem_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).

Detailed Description

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

Definition at line 209 of file SgUctSearch.h.


Member Function Documentation

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

Member Data Documentation

std::vector<bool> SgUctGameInfo::m_aborted

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

Definition at line 225 of file SgUctSearch.h.

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

The game result of the playout(s).

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

Definition at line 213 of file SgUctSearch.h.

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

std::vector<const SgUctNode*> SgUctGameInfo::m_nodes
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 221 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 235 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:


Sun Mar 13 2011 Doxygen 1.7.1