char age;\r
} HashEntry; // hash-table entry\r
\r
+ // Some global variables that control your engine's behavior\r
+ int ponder;\r
+ int randomize;\r
+ int postThinking;\r
+ int resign; // engine-defined option\r
+ int contemptFactor; // likewise\r
+\r
int squareKey[BSIZE];\r
\r
int rawBoard[BSIZE + 11*BW + 6];\r
} // next move\r
cutoff:\r
if(!level) { // root node\r
+ if(postThinking > 0) {\r
+ int i; // WB thinking output\r
+ printf("%d %d %d %d", iterDep, bestScore, (GetTickCount() - startTime)/10, nodes);\r
+ for(i=0; pv[i]; i++) printf(" %s", MoveToText(pv[i], 0));\r
+ printf("\n"); fflush(stdout);\r
+ }\r
if(GetTickCount() - startTime > tlim1) break; // do not start iteration we can (most likely) not finish\r
}\r
replyDep = iterDep;\r
if(*moveText == '+') ret |= PROMOTE;\r
printf("# suppress = %c%d\n", sup1%BW+'a', sup1/BW);\r
MapFromScratch(attacks);\r
+ postThinking--;\r
Search(-INF-1, INF+1, 0, 1, sup1, sup2);\r
+ postThinking++;\r
for(i=retFirst; i<retMSP; i++) {\r
if(moveStack[i] == INVALID) continue;\r
if(c == '@' && (moveStack[i] & SQUARE) == (moveStack[i] >> SQLEN & SQUARE)) break; // any null move matches @@@@\r
ReadSquare(coords, &sqr);\r
MapFromScratch(attacks);\r
flag=1;\r
+ postThinking--;\r
Search(-INF-1, INF+1, 0, 1, sup1, sup2);\r
+ postThinking++;\r
flag=0;\r
for(i=retFirst; i<retMSP; i++) {\r
if(sqr == (moveStack[i]>>SQLEN & SQUARE)) {\r
{\r
}\r
\r
- // Some global variables that control your engine's behavior\r
- int ponder;\r
- int randomize;\r
- int postThinking;\r
- int resign; // engine-defined option\r
- int contemptFactor; // likewise\r
-\r
int TakeBack(int n)\r
{ // reset the game and then replay it to the desired point\r
int last, stm;\r