To make bugs reproducible we temporarily put in code to clear all
hash entries before every move.
fflush(stdout); // make sure everything is printed before we do something that might take time
if(stm == engineSide) { // if it is the engine's turn to move, set it thinking, and let it move
-
+{int i;for(i=0; i<=hashMask+3; i++) /*if(hashTable[i].score != hashTable[i].lim)*/ hashTable[i].lock = 0;}
nodeCount = forceMove = undoInfo.move = abortFlag = 0; ReadClock(1);
for(i=0;i<1<<16;i++) history[i] = 0; //>>= 1;
for(i=0;i<1<<17;i++) mateKillers[i] = 0;