#include <engine.h>
Public Member Functions | |
| string | initialSetup (bool isGold) const |
| Returns initial setup. | |
| void | doSearch (const Board *) |
| Wrapper around searching method. | |
| void | requestSearchStop () |
| Requests search stop. | |
| TimeManager * | timeManager () |
| TimeManager getter. | |
| void | setPonder (bool value) |
| Ponder mode setter. | |
| bool | getPonder () const |
| Ponder mode getter. | |
| string | getBestMove () const |
| Move to be performed. | |
| string | getStats () const |
| Interface to get search statistics. | |
| string | getAdditionalInfo () const |
| Interface to get additional info ( like search tree ). | |
| float | getWinRatio () const |
| Interface to winr ration getter. | |
| bool | checkSearchStop () const |
| Check whether search should be stop. | |
Private Member Functions | |
| void | mockupSearchResults (const Board *board, Uct *uct[], Uct *masterUct, int resultsNum) |
| Takes care of mocking the results from search. | |
Static Private Member Functions | |
| static void * | searchTreeWrapper (void *searchTreeInfo) |
Private Attributes | |
| TimeManager * | timeManager_ |
| string | bestMove_ |
| string | stats_ |
| string | additionalInfo_ |
| float | winRatio_ |
| bool | ponder_ |
| Ponder mode flag. | |
| bool | stopRequest_ |
| Flag to stop search. | |
Abstract class implementing interface memthods for search and retrieving after-search information.
| bool Engine::checkSearchStop | ( | ) | const |
Check whether search should be stop.
| string Engine::getBestMove | ( | ) | const |
| void Engine::requestSearchStop | ( | ) |
Requests search stop.
Search will stop after current playout is finished.
bool Engine::ponder_ [private] |
Ponder mode flag.
bool Engine::stopRequest_ [private] |
Flag to stop search.
1.5.7.1