mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Prune evasions when we can castle
A minor simplification. STC: LLR: 2.95 (-2.94,2.94) [-3.50,0.50] Total: 67877 W: 12882 L: 12904 D: 42091 STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20677 W: 4023 L: 3901 D: 12753 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 12221 W: 2022 L: 1888 D: 8311 Bench: 7911336 Resolves #326
This commit is contained in:
+1
-2
@@ -1302,8 +1302,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
|||||||
// Detect non-capture evasions that are candidates to be pruned
|
// Detect non-capture evasions that are candidates to be pruned
|
||||||
evasionPrunable = InCheck
|
evasionPrunable = InCheck
|
||||||
&& bestValue > VALUE_MATED_IN_MAX_PLY
|
&& bestValue > VALUE_MATED_IN_MAX_PLY
|
||||||
&& !pos.capture(move)
|
&& !pos.capture(move);
|
||||||
&& !pos.can_castle(pos.side_to_move());
|
|
||||||
|
|
||||||
// Don't search moves with negative SEE values
|
// Don't search moves with negative SEE values
|
||||||
if ( (!InCheck || evasionPrunable)
|
if ( (!InCheck || evasionPrunable)
|
||||||
|
|||||||
Reference in New Issue
Block a user