Skip to content

Commit

Permalink
filter !ttcapture
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Mar 3, 2019
1 parent cad64ed commit 77b1503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ namespace {

// Check extension (~2 Elo)
else if ( givesCheck
&& (pos.blockers_for_king(~us) & from_sq(move) || pos.see_ge(move)))
&& (pos.blockers_for_king(~us) & from_sq(move) || positiveSEE))
extension = ONE_PLY;

// Castling extension
Expand Down Expand Up @@ -1027,7 +1027,7 @@ namespace {

// Decrease reduction if position is or has been on the PV
// or if the moved piece is same than ttmove
if (ttPv || (from_sq(move) == from_sq(ttMove) && ttMove && positiveSEE))
if (ttPv || (from_sq(move) == from_sq(ttMove) && ttMove && positiveSEE && !ttCapture))
r -= ONE_PLY;

// Decrease reduction if opponent's move count is high (~10 Elo)
Expand Down

0 comments on commit 77b1503

Please sign in to comment.