Commands for building opening books. More...
#include <BookBuilderCommands.hpp>
Public Member Functions | |
BookBuilderCommands (Game &game, HexEnvironment &env, boost::scoped_ptr< Book > &book, BookCheck &bookCheck, PLAYER &player) | |
~BookBuilderCommands () | |
void | Register (GtpEngine &engine) |
Protected Attributes | |
Game & | m_game |
HexEnvironment & | m_env |
boost::scoped_ptr< Book > & | m_book |
BookCheck & | m_bookCheck |
Private Types | |
typedef BookBuilderCommands < PLAYER > | BookBuilderType |
Private Member Functions | |
void | Register (GtpEngine &engine, const std::string &command, typename GtpCallback< BookBuilderType >::Method method) |
void | CmdBookPriorities (HtpCommand &cmd) |
void | CmdBookExpand (HtpCommand &cmd) |
Expands the current node in the current opening book. | |
void | CmdBookRefresh (HtpCommand &cmd) |
Refreshes the current book. | |
void | CmdBookIncreaseWidth (HtpCommand &cmd) |
Increases the width of all internal nodes that need to be increased. | |
void | CmdParamBookBuilder (HtpCommand &cmd) |
Private Attributes | |
BookBuilder< PLAYER > | m_bookBuilder |
Commands for building opening books.
Definition at line 19 of file BookBuilderCommands.hpp.
typedef BookBuilderCommands<PLAYER> BookBuilderCommands< PLAYER >::BookBuilderType [private] |
Definition at line 25 of file BookBuilderCommands.hpp.
BookBuilderCommands< PLAYER >::BookBuilderCommands | ( | Game & | game, | |
HexEnvironment & | env, | |||
boost::scoped_ptr< Book > & | book, | |||
BookCheck & | bookCheck, | |||
PLAYER & | player | |||
) | [inline] |
Definition at line 48 of file BookBuilderCommands.hpp.
BookBuilderCommands< PLAYER >::~BookBuilderCommands | ( | ) | [inline] |
Definition at line 59 of file BookBuilderCommands.hpp.
void BookBuilderCommands< PLAYER >::CmdBookExpand | ( | HtpCommand & | cmd | ) | [inline, private] |
Expands the current node in the current opening book.
"book-expand [iterations]"
Definition at line 132 of file BookBuilderCommands.hpp.
References Game::Board(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_env, BookCommands::m_game, HexEnvironment::SyncBoard(), and StoneBoard::WhoseTurn().
void BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth | ( | HtpCommand & | cmd | ) | [inline, private] |
Increases the width of all internal nodes that need to be increased.
See BookBuilder::IncreaseWidth().
Definition at line 162 of file BookBuilderCommands.hpp.
References Game::Board(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_env, BookCommands::m_game, HexEnvironment::SyncBoard(), UNUSED(), and StoneBoard::WhoseTurn().
void BookBuilderCommands< PLAYER >::CmdBookPriorities | ( | HtpCommand & | cmd | ) | [inline, private] |
Definition at line 175 of file BookBuilderCommands.hpp.
References Game::Board(), BookUtil::InverseEval(), HexEvalUtil::IsLoss(), HexEvalUtil::IsWin(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_game, and StoneBoard::WhoseTurn().
void BookBuilderCommands< PLAYER >::CmdBookRefresh | ( | HtpCommand & | cmd | ) | [inline, private] |
Refreshes the current book.
See BookBuilder::Refresh().
Definition at line 147 of file BookBuilderCommands.hpp.
References Game::Board(), BookCommands::m_book, BookBuilderCommands< PLAYER >::m_bookBuilder, BookCommands::m_env, BookCommands::m_game, HexEnvironment::SyncBoard(), UNUSED(), and StoneBoard::WhoseTurn().
void BookBuilderCommands< PLAYER >::CmdParamBookBuilder | ( | HtpCommand & | cmd | ) | [inline, private] |
Definition at line 88 of file BookBuilderCommands.hpp.
References BookBuilderCommands< PLAYER >::m_bookBuilder.
void BookBuilderCommands< PLAYER >::Register | ( | GtpEngine & | engine, | |
const std::string & | command, | |||
typename GtpCallback< BookBuilderType >::Method | method | |||
) | [inline, private] |
Definition at line 78 of file BookBuilderCommands.hpp.
void BookBuilderCommands< PLAYER >::Register | ( | GtpEngine & | engine | ) | [inline] |
Reimplemented from BookCommands.
Definition at line 64 of file BookBuilderCommands.hpp.
Referenced by MoHexEngine::MoHexEngine().
boost::scoped_ptr<Book>& BookCommands::m_book [protected, inherited] |
Definition at line 36 of file BookCommands.hpp.
Referenced by BookCommands::CmdBookClose(), BookCommands::CmdBookCounts(), BookCommands::CmdBookDumpPolarizedLeafs(), BookBuilderCommands< PLAYER >::CmdBookExpand(), BookCommands::CmdBookImportSolvedStates(), BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth(), BookCommands::CmdBookMainLineDepth(), BookCommands::CmdBookOpen(), BookBuilderCommands< PLAYER >::CmdBookPriorities(), BookBuilderCommands< PLAYER >::CmdBookRefresh(), BookCommands::CmdBookScores(), BookCommands::CmdBookSetValue(), BookCommands::CmdBookStat(), and BookCommands::CmdBookVisualize().
BookBuilder<PLAYER> BookBuilderCommands< PLAYER >::m_bookBuilder [private] |
Definition at line 23 of file BookBuilderCommands.hpp.
Referenced by BookBuilderCommands< PLAYER >::CmdBookExpand(), BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth(), BookBuilderCommands< PLAYER >::CmdBookPriorities(), BookBuilderCommands< PLAYER >::CmdBookRefresh(), and BookBuilderCommands< PLAYER >::CmdParamBookBuilder().
BookCheck& BookCommands::m_bookCheck [protected, inherited] |
Definition at line 38 of file BookCommands.hpp.
Referenced by BookCommands::CmdBookParam(), and BookCommands::CmdBookScores().
HexEnvironment& BookCommands::m_env [protected, inherited] |
Definition at line 34 of file BookCommands.hpp.
Referenced by BookBuilderCommands< PLAYER >::CmdBookExpand(), BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth(), and BookBuilderCommands< PLAYER >::CmdBookRefresh().
Game& BookCommands::m_game [protected, inherited] |
Definition at line 32 of file BookCommands.hpp.
Referenced by BookCommands::CmdBookCounts(), BookCommands::CmdBookDumpPolarizedLeafs(), BookBuilderCommands< PLAYER >::CmdBookExpand(), BookCommands::CmdBookImportSolvedStates(), BookBuilderCommands< PLAYER >::CmdBookIncreaseWidth(), BookCommands::CmdBookMainLineDepth(), BookBuilderCommands< PLAYER >::CmdBookPriorities(), BookBuilderCommands< PLAYER >::CmdBookRefresh(), BookCommands::CmdBookScores(), BookCommands::CmdBookSetValue(), and BookCommands::CmdBookVisualize().