&& eval >= beta
&& eval < 29462 // smaller than TB wins
&& !( !ttCapture
- && ttMove
- && thisThread->mainHistory[us][from_to(ttMove)] < 989))
+ && ttMove))
return eval;
// Step 9. Null move search with verification search (~35 Elo)
{
// Save ProbCut data into transposition table
tte->save(posKey, value_to_tt(value, ss->ply), ss->ttPv, BOUND_LOWER, depth - 3, move, ss->staticEval);
- return value;
+ return value - (probCutBeta - beta);
}
}
futilityBase = std::min(ss->staticEval, bestValue) + 200;
}
- const PieceToHistory* contHist[] = { (ss-1)->continuationHistory, (ss-2)->continuationHistory,
- (ss-3)->continuationHistory, (ss-4)->continuationHistory,
- nullptr , (ss-6)->continuationHistory };
+ const PieceToHistory* contHist[] = {(ss-1)->continuationHistory, (ss-2)->continuationHistory};
// Initialize a MovePicker object for the current position, and prepare
// to search the moves. Because the depth is <= 0 here, only captures,