The Pedigree Project
0.1
|
Public Member Functions | |
Engine () | |
~Engine () | |
void | run () |
void | ponder (bool b) |
void | startSearch (Side s, int minD, int maxD) |
void | stopSearch () |
bool | searchComplete () volatile |
Move | getMove () |
void | move (Move m) |
void | printMoveList () |
Static Public Member Functions | |
static void * | threadTramp (void *ptr) |
Public Attributes | |
BoardState | state |
Private Attributes | |
SearchAlgorithm * | search |
volatile bool | doSearch |
volatile Side | side |
volatile int | minDepth |
volatile int | maxDepth |
MoveList | moveList |
long | heuristic |
Engine::Engine | ( | ) |
Engine::~Engine | ( | ) |
Move Engine::getMove | ( | ) |
void Engine::move | ( | Move | m | ) |
void Engine::ponder | ( | bool | b | ) |
void Engine::printMoveList | ( | ) |
void Engine::run | ( | ) |
Main runloop. Called solely by the spawned thread from Engine().
Definition at line 50 of file Engine.cc.
References doSearch, moveList, printMoveList(), search, side, and state.
Referenced by threadTramp().
bool Engine::searchComplete | ( | ) | volatile |
void Engine::startSearch | ( | Side | s, |
int | minD, | ||
int | maxD | ||
) |
void Engine::stopSearch | ( | ) |
|
static |
|
private |
Should the worker thread be searching?
Definition at line 105 of file Engine.h.
Referenced by Engine(), run(), searchComplete(), startSearch(), and stopSearch().
|
private |
The maximum and minimum depths to search to.
Definition at line 115 of file Engine.h.
Referenced by Engine(), and startSearch().
|
private |
The move list that the engine found.
Definition at line 120 of file Engine.h.
Referenced by getMove(), printMoveList(), and run().
|
private |
The opening book that we can query. The algorithm that does the brunt work for us.
Definition at line 100 of file Engine.h.
Referenced by Engine(), printMoveList(), and run().
|
private |
The side to search for a move for.
Definition at line 110 of file Engine.h.
Referenced by run(), and startSearch().
BoardState Engine::state |