tail = pvPtr; pvPtr = pvStart; *pvPtr++ = moveStack[curMove]; // alpha < score < beta: move starts new PV
while(*pvPtr++ = *tail++); // copy PV of daughter node behind it (including 0 sentinel)
if(ply == 0) { // in root we print this PV
- printf("%d %d %d %d", iterDepth, score, ReadClock(0)/10, nodeCount);
+ int xbScore = (score > INF-100 ? 100000 + INF - score : score < 100-INF ? -100000 - score - INF : score);
+ printf("%d %d %d %d", iterDepth, xbScore, ReadClock(0)/10, nodeCount);
for(tail=pvStart; *tail; tail++) printf(" %s", MoveToText(*tail));
printf("\n"); fflush(stdout);
}