mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Simplify pruning moves with negative SEE
This patch simplifies pruning moves with negative SEE values. STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 18847 W: 4211 L: 4084 D: 10552 http://tests.stockfishchess.org/tests/view/5de983f2caa7c610e4d1866e LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 25556 W: 4200 L: 4087 D: 17269 http://tests.stockfishchess.org/tests/view/5de99e21caa7c610e4d18676 Bench 5390930
This commit is contained in:
parent
a6b5ba1b64
commit
78eeba29a2
1 changed files with 1 additions and 3 deletions
|
@ -1478,9 +1478,7 @@ moves_loop: // When in check, search starts from here
|
||||||
&& !pos.capture(move);
|
&& !pos.capture(move);
|
||||||
|
|
||||||
// Don't search moves with negative SEE values
|
// Don't search moves with negative SEE values
|
||||||
if ( (!inCheck || evasionPrunable)
|
if ( (!inCheck || evasionPrunable) && !pos.see_ge(move))
|
||||||
&& !(givesCheck && pos.is_discovery_check_on_king(~pos.side_to_move(), move))
|
|
||||||
&& !pos.see_ge(move))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Speculative prefetch as early as possible
|
// Speculative prefetch as early as possible
|
||||||
|
|
Loading…
Add table
Reference in a new issue