Skip to content

Commit

Permalink
Update search.cpp
Browse files Browse the repository at this point in the history
bench: 1393911
  • Loading branch information
TarasVuk authored Nov 13, 2023
1 parent fbc6b27 commit ddd6aab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,12 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
else if (PvNode && move == ttMove && move == ss->killers[0]
&& (*contHist[0])[movedPiece][to_sq(move)] >= 4194)
extension = 1;

// Recapture extensions (~1 Elo)
else if (PvNode && move == ttMove && to_sq(move) == prevSq
&& captureHistory[movedPiece][to_sq(move)][type_of(pos.piece_on(to_sq(move)))]
> 4000)
extension = 1;
}

// Add extension to new depth
Expand Down

0 comments on commit ddd6aab

Please sign in to comment.