Skip to content

Commit

Permalink
Do last capture extensions for every single node
Browse files Browse the repository at this point in the history
This patch simplifies latest @MJZ1977 elo gainer. Seems like PvNode check in
condition of last capture extension is not needed. Note - even if this is a
simplification it actually causes this extension to be applied more often, thus
strengthening effect of @MJZ1977's patch.

passed STC
http://tests.stockfishchess.org/tests/view/5deb9a3eb7bdefd50db28d0e
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 80244 W: 17421 L: 17414 D: 45409

passed LTC
http://tests.stockfishchess.org/tests/view/5deba860b7bdefd50db28d11
LLR: 2.94 (-2.94,2.94) [-3.00,1.00]
Total: 21506 W: 3565 L: 3446 D: 14495

Bench: 5097036
  • Loading branch information
Vizvezdenec authored and snicolet committed Dec 8, 2019
1 parent 78eeba2 commit d00b2ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Expand Up @@ -1064,8 +1064,7 @@ namespace {
extension = 1;

// Last captures extension
else if ( PvNode
&& PieceValue[EG][pos.captured_piece()] > PawnValueEg
else if ( PieceValue[EG][pos.captured_piece()] > PawnValueEg
&& pos.non_pawn_material() <= 2 * RookValueMg)
extension = 1;

Expand Down

0 comments on commit d00b2ec

Please sign in to comment.