mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Prune dangerous moves at low depth
At very low depths prune captures, promotions and checks if see is negative. STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 6772 W: 1328 L: 1173 D: 4271 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 8917 W: 1270 L: 1122 D: 6525 bench: 6024713
This commit is contained in:
@@ -956,6 +956,16 @@ moves_loop: // When in check search starts from here
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ( depth < 3 * ONE_PLY
|
||||||
|
&& !inCheck
|
||||||
|
&& bestValue > VALUE_MATED_IN_MAX_PLY
|
||||||
|
&& !rootNode
|
||||||
|
&& ( captureOrPromotion
|
||||||
|
|| givesCheck
|
||||||
|
|| pos.advanced_pawn_push(move))
|
||||||
|
&& pos.see_sign(move) < VALUE_ZERO
|
||||||
|
)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Speculative prefetch as early as possible
|
// Speculative prefetch as early as possible
|
||||||
prefetch(TT.first_entry(pos.key_after(move)));
|
prefetch(TT.first_entry(pos.key_after(move)));
|
||||||
|
|||||||
Reference in New Issue
Block a user