if ( depth >= 12
&& !stop
&& PVSize == 1
+ && bestValue > VALUE_MATED_IN_MAX_PLY
&& ( RootMoves.size() == 1
|| Time::now() - SearchTime > (TimeMgr.available_time() * 20) / 100))
{
if (nullValue >= VALUE_MATE_IN_MAX_PLY)
nullValue = beta;
- if (depth < 6 * ONE_PLY)
+ if (depth < 12 * ONE_PLY)
return nullValue;
// Do verification search at high depths
continue;
}
- // Prune moves with negative or equal SEE
+ // Prune moves with negative or equal SEE.
+ // Also prune moves with positive SEE where capturing loses a tempo and SEE < beta - futilityBase.
if ( futilityBase < beta
&& depth < DEPTH_ZERO
- && pos.see(move) <= 0)
+ && pos.see_asymm(move, beta - futilityBase) <= 0)
{
bestValue = std::max(bestValue, futilityBase);
continue;