Definition in file GoUctUtil.cpp.
#include "SgSystem.h"
#include "GoUctUtil.h"
#include <iomanip>
#include <iostream>
#include <boost/io/ios_state.hpp>
#include "SgBWSet.h"
#include "SgPointSet.h"
#include "SgProp.h"
#include "SgUctSearch.h"
Go to the source code of this file.
Functions | |
bool | IsRectEmpty (const GoBoard &bd, int left, int right, int top, int bottom) |
void | SaveNode (ostream &out, const SgUctTree &tree, const SgUctNode &node, SgBlackWhite toPlay, int boardSize, int maxDepth, int depth) |
Recursive function to save the UCT tree in SGF format. | |
void | GoUctUtil::ClearStatistics (SgPointArray< SgUctStatistics > &stats) |
SgPoint | GoUctUtil::GenForcedOpeningMove (const GoBoard &bd) |
Generate a forced opening move. | |
void | GoUctUtil::GfxBestMove (const SgUctSearch &search, SgBlackWhite toPlay, std::ostream &out) |
Print information about search as Gfx commands for GoGui. | |
void | GoUctUtil::GfxCounts (const SgUctTree &tree, std::ostream &out) |
Print move counts as Gfx commands for GoGui. | |
void | GoUctUtil::GfxMoveValues (const SgUctSearch &search, SgBlackWhite toPlay, std::ostream &out) |
Print the move values as Gfx commands for GoGui. | |
void | GoUctUtil::GfxSequence (const SgUctSearch &search, SgBlackWhite toPlay, std::ostream &out) |
Print best sequence of search in GoGui live-gfx format. | |
void | GoUctUtil::GfxStatus (const SgUctSearch &search, std::ostream &out) |
Print information about search as GoGui Gfx commands for text in the status line. | |
void | GoUctUtil::GfxTerritoryStatistics (const SgPointArray< SgUctStatistics > &territoryStatistics, const GoBoard &bd, std::ostream &out) |
Print territory statistics as GoGui gfx commands. | |
void | GoUctUtil::SaveTree (const SgUctTree &tree, int boardSize, const SgBWSet &stones, SgBlackWhite toPlay, std::ostream &out, int maxDepth=-1) |
Save tree contained in a search as a Go SGF file. | |
bool | IsMeanLess (const SgUctNode *lhs, const SgUctNode *rhs) |
Assist to sort nodes in GoUctUtil::ChildrenStatistics. | |
string | GoUctUtil::ChildrenStatistics (const SgUctSearch &search, bool bSort, const SgUctNode &node) |
Return statistics of all children of a node. |
Assist to sort nodes in GoUctUtil::ChildrenStatistics.
Definition at line 240 of file GoUctUtil.cpp.
References SgUctNode::Mean().
Referenced by GoUctUtil::ChildrenStatistics().
bool @4::IsRectEmpty | ( | const GoBoard & | bd, | |
int | left, | |||
int | right, | |||
int | top, | |||
int | bottom | |||
) | [static] |
Definition at line 26 of file GoUctUtil.cpp.
References GoBoard::IsEmpty().
Referenced by GoUctUtil::GenForcedOpeningMove().
void @4::SaveNode | ( | ostream & | out, | |
const SgUctTree & | tree, | |||
const SgUctNode & | node, | |||
SgBlackWhite | toPlay, | |||
int | boardSize, | |||
int | maxDepth, | |||
int | depth | |||
) | [static] |
Recursive function to save the UCT tree in SGF format.
Definition at line 35 of file GoUctUtil.cpp.
References SgUctNode::HasChildren(), SgUctNode::Mean(), SgUctNode::MoveCount(), PointToSgfString(), SgUctNode::PosCount(), SG_BLACK, SG_PROPPOINTFMT_GO, and SgOppBW().
Referenced by GoUctUtil::SaveTree().