mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Extend last non-pawn captures
Extend last non-pawn captures at principal variation nodes because they are in general decisive moves with clear endgame result. STC http://tests.stockfishchess.org/tests/view/5ddafc86e75c0005326d2140 LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 9892 W: 2238 L: 2099 D: 5555 LTC http://tests.stockfishchess.org/tests/view/5ddb0401e75c0005326d2150 LLR: 2.95 (-2.94,2.94) [0.00,3.50] Total: 30369 W: 5013 L: 4756 D: 20600 Closes https://github.com/official-stockfish/Stockfish/pull/2425 Bench: 5059526
This commit is contained in:
parent
87ed9facf1
commit
53125902e4
1 changed files with 6 additions and 0 deletions
|
@ -1049,6 +1049,12 @@ moves_loop: // When in check, search starts from here
|
||||||
&& pos.pawn_passed(us, to_sq(move)))
|
&& pos.pawn_passed(us, to_sq(move)))
|
||||||
extension = 1;
|
extension = 1;
|
||||||
|
|
||||||
|
// Last captures extension
|
||||||
|
else if ( PvNode
|
||||||
|
&& PieceValue[EG][pos.captured_piece()] > PawnValueEg
|
||||||
|
&& pos.non_pawn_material() <= 2 * RookValueMg)
|
||||||
|
extension = 1;
|
||||||
|
|
||||||
// Castling extension
|
// Castling extension
|
||||||
if (type_of(move) == CASTLING)
|
if (type_of(move) == CASTLING)
|
||||||
extension = 1;
|
extension = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue