#include "Hex.hpp"
#include "HexBoard.hpp"
#include "HashDB.hpp"
#include "HexEval.hpp"
#include "StateDB.hpp"
#include "SgBookBuilder.h"
Go to the source code of this file.
Classes | |
class | HexBookNode |
Class for writing SgBookNodes to the database. More... | |
class | Book |
A book is just a database of BookNodes. More... | |
Namespaces | |
namespace | BookUtil |
Utilities on Books. | |
Functions | |
float | BookUtil::Value (const SgBookNode &node, const HexState &brd) |
Returns value of board, taking into account swap moves. | |
float | BookUtil::Score (const SgBookNode &node, const HexState &brd, float countWeight) |
Returns score for this node, taking into account the amount of information in the subtree. | |
float | BookUtil::InverseEval (float eval) |
Evaluation for other player. | |
HexPoint | BookUtil::BestMove (const Book &book, const HexState &state, unsigned minCount, float countWeight) |
Finds best response in book. | |
void | BookUtil::DumpVisualizationData (const Book &book, const HexState &state, int depth, std::ostream &out) |
Writes a (score, depth) pair to output stream for each leaf in the book. | |
void | BookUtil::DumpPolarizedLeafs (const Book &book, const HexState &state, float polarization, PointSequence &pv, std::ostream &out, const StateSet &ignoreSet) |
Writes variations leading to non-terminal leafs whose values differ from 0.5 by at least polarization. | |
void | BookUtil::ImportSolvedStates (Book &book, const ConstBoard &constBoard, std::istream &positions) |
Reads solved leaf positions from a file and adds them to the given book. | |
int | BookUtil::GetMainLineDepth (const Book &book, const HexState &state) |
Returns the depth of the mainline from the given state. | |
std::size_t | BookUtil::GetTreeSize (const Book &book, const HexState &state) |
Returns the number of nodes in the tree rooted at the current state. |
Definition in file Book.hpp.