Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctSearch.cpp File Reference


Detailed Description

Definition in file GoUctSearch.cpp.

#include "SgSystem.h"
#include "GoUctSearch.h"
#include <fstream>
#include <iostream>
#include "GoBoardUtil.h"
#include "GoNodeUtil.h"
#include "GoUctUtil.h"
#include "SgDebug.h"
#include "SgGameWriter.h"
#include "SgNode.h"
#include "SgUctTreeUtil.h"

Go to the source code of this file.

Functions

SgNodeAppendChild (SgNode *node, const string &comment)
SgNodeAppendChild (SgNode *node, SgBlackWhite color, SgPoint move)
void AppendGame (SgNode *node, size_t gameNumber, int threadId, SgBlackWhite toPlay, const SgUctGameInfo &info)
 Append game to saved simulations (used if m_keepGames is true).
SgPoint GoUctSearchUtil::TrompTaylorPassCheck (SgPoint move, const GoUctSearch &search)
 Checks if move is a bad pass move, if Tromp-Taylor rules are used, and tries to fix it.

Variables

const int MOVERANGE = SG_PASS + 1


Function Documentation

SgNode* @3::AppendChild ( SgNode node,
SgBlackWhite  color,
SgPoint  move 
) [static]

Definition at line 36 of file GoUctSearch.cpp.

References SgNode::Add(), SgNode::NewRightMostSon(), SG_BLACK, SG_PROP_MOVE_BLACK, and SG_PROP_MOVE_WHITE.

SgNode* @3::AppendChild ( SgNode node,
const string &  comment 
) [static]

Definition at line 29 of file GoUctSearch.cpp.

References SgNode::AddComment(), and SgNode::NewRightMostSon().

Referenced by AppendGame().

void @3::AppendGame ( SgNode node,
size_t  gameNumber,
int  threadId,
SgBlackWhite  toPlay,
const SgUctGameInfo info 
) [static]

Append game to saved simulations (used if m_keepGames is true).

Definition at line 46 of file GoUctSearch.cpp.

References AppendChild(), SgUctGameInfo::m_aborted, SgUctGameInfo::m_eval, SgUctGameInfo::m_inTreeSequence, SgUctGameInfo::m_sequence, SG_ASSERT, and SgOppBW().

Referenced by GoUctSearch::OnSearchIteration().


Variable Documentation

const int MOVERANGE = SG_PASS + 1 [static]

Definition at line 27 of file GoUctSearch.cpp.


17 Jun 2010 Doxygen 1.4.7