// Step 1. Initialize node
Thread* thisThread = pos.this_thread();
+ thisThread->depth = depth;
ss->inCheck = pos.checkers();
priorCapture = pos.captured_piece();
Color us = pos.side_to_move();
if (PvNode && !ss->inCheck && abs(ss->staticEval - bestValue) > 250)
r--;
+ // Increase depth based reduction if PvNode
+ if (PvNode)
+ r -= 15 / ( 3 + depth );
+
ss->statScore = thisThread->mainHistory[us][from_to(move)]
+ (*contHist[0])[movedPiece][to_sq(move)]
+ (*contHist[1])[movedPiece][to_sq(move)]