Engine Class Reference

Interface to whole search. More...

#include <engine.h>

List of all members.

Public Member Functions

string initialSetup (bool isGold) const
 Returns initial setup.
void doSearch (const Board *)
 Wrapper around searching method.
void requestSearchStop ()
 Requests search stop.
TimeManagertimeManager ()
 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

TimeManagertimeManager_
string bestMove_
string stats_
string additionalInfo_
float winRatio_
bool ponder_
 Ponder mode flag.
bool stopRequest_
 Flag to stop search.


Detailed Description

Interface to whole search.

Abstract class implementing interface memthods for search and retrieving after-search information.


Member Function Documentation

bool Engine::checkSearchStop (  )  const

Check whether search should be stop.

Returns:
True if Time is up or stop reaeust returned, otherwise false.

string Engine::getBestMove (  )  const

Move to be performed.

Returns:
initialMove_ if it is set. best Move from search otherwise.

void Engine::requestSearchStop (  ) 

Requests search stop.

Search will stop after current playout is finished.


Member Data Documentation

bool Engine::ponder_ [private]

Ponder mode flag.

bool Engine::stopRequest_ [private]

Flag to stop search.


The documentation for this class was generated from the following files:

Generated on Thu Aug 6 23:29:08 2009 for akimot by  doxygen 1.5.7.1