25 #include "Negascout.h" 26 #include "Alphabeta.h" 28 extern long g_nCacheHits, g_nCacheMisses, g_nCacheEntries, g_nCachePartials;
29 extern long g_nHashes, g_nIsLegal, g_nInCheck;
30 extern long g_nIsAttacking, g_nHeuristic;
43 pthread_create(&thread, NULL, &
threadTramp, (
void*)
this);
58 for (
int ply = 1; ply <= maxDepth; ply++)
115 for (MoveList::iterator it =
moveList.begin();
123 printf(
"(Heuristic %d - Searched %d nodes with %d cache hits, %d partials and %d misses (%d entries))\n", heuristic,
search->nodesSearched, g_nCacheHits, g_nCachePartials, g_nCacheMisses, g_nCacheEntries);
124 printf(
"{%d hashes %d islegal %d incheck %d isattacking %d heuristic}\n", g_nHashes, g_nIsLegal, g_nInCheck, g_nIsAttacking, g_nHeuristic);
bool searchComplete() volatile
void startSearch(Side s, int minD, int maxD)
static void * threadTramp(void *ptr)