Skip to content

Commit

Permalink
Extend moves which might be the only escape for mate, take 2
Browse files Browse the repository at this point in the history
bench: 4835677
  • Loading branch information
pb00068 committed Oct 11, 2018
1 parent 59acacb commit 7e6c30c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ namespace {
extension = ONE_PLY;
else if (mateCount >= 2
&& mateCount == moveCount - 1
&& eval >= beta - 120
&& !excludedMove)
extension = ONE_PLY; // either this move also get mated (then extension don't hurts) or this is one of the very few escapes

Expand Down

0 comments on commit 7e6c30c

Please sign in to comment.