Returns best move from book. More...
#include <BookCheck.hpp>
Public Member Functions | |
| BookCheck (boost::scoped_ptr< Book > &book) | |
| ~BookCheck () | |
| HexPoint | BestMove (const HexState &state) |
| Returns best move from the book. | |
| unsigned | MinCount () const |
| Ignore nodes with counts below this. | |
| void | SetMinCount (int count) |
| See MinCount(). | |
| float | CountWeight () const |
| Weight used to choose best move. | |
| void | SetCountWeight (float factor) |
| See CountWeight(). | |
Private Attributes | |
| boost::scoped_ptr< Book > & | m_book |
| unsigned | m_minCount |
| See MinCount(). | |
| float | m_countWeight |
| See CountWeight(). | |
Returns best move from book.
Definition at line 16 of file BookCheck.hpp.
| BookCheck::BookCheck | ( | boost::scoped_ptr< Book > & | book | ) |
Definition at line 12 of file BookCheck.cpp.
| BookCheck::~BookCheck | ( | ) |
Definition at line 19 of file BookCheck.cpp.
Returns best move from the book.
Returns INVALID_POINT of no book or position not found in book.
Definition at line 23 of file BookCheck.cpp.
References INVALID_POINT, LogInfo(), m_book, m_countWeight, and m_minCount.
Referenced by WolveEngine::GenMove(), and MoHexEngine::GenMove().
| float BookCheck::CountWeight | ( | ) | const [inline] |
Weight used to choose best move.
Definition at line 60 of file BookCheck.hpp.
References m_countWeight.
Referenced by BookCommands::CmdBookParam(), and BookCommands::CmdBookScores().
| unsigned BookCheck::MinCount | ( | ) | const [inline] |
Ignore nodes with counts below this.
Definition at line 50 of file BookCheck.hpp.
References m_minCount.
Referenced by BookCommands::CmdBookParam().
| void BookCheck::SetCountWeight | ( | float | factor | ) | [inline] |
See CountWeight().
Definition at line 65 of file BookCheck.hpp.
References m_countWeight.
Referenced by BookCommands::CmdBookParam().
| void BookCheck::SetMinCount | ( | int | count | ) | [inline] |
See MinCount().
Definition at line 55 of file BookCheck.hpp.
References m_minCount.
Referenced by BookCommands::CmdBookParam().
boost::scoped_ptr<Book>& BookCheck::m_book [private] |
Definition at line 41 of file BookCheck.hpp.
Referenced by BestMove().
float BookCheck::m_countWeight [private] |
See CountWeight().
Definition at line 47 of file BookCheck.hpp.
Referenced by BestMove(), CountWeight(), and SetCountWeight().
unsigned BookCheck::m_minCount [private] |
See MinCount().
Definition at line 44 of file BookCheck.hpp.
Referenced by BestMove(), MinCount(), and SetMinCount().