Skip to content

Commit

Permalink
tviigg.
Browse files Browse the repository at this point in the history
bench 3588383
  • Loading branch information
Vizvezdenec committed Jul 10, 2019
1 parent 896da0b commit ec7f43e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,13 @@ namespace {
// Prune moves with negative SEE (~10 Elo)
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
continue;

if (type_of(movedPiece) == KING
&& !inCheck
&& type_of(move) == NORMAL
&& pos.castling_rights(us)
&& !pos.blockers_for_king(us))
continue;
}
else if ((!givesCheck || !extension)
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
Expand Down Expand Up @@ -1063,7 +1070,6 @@ namespace {
// re-searched at full depth.
if ( depth >= 3 * ONE_PLY
&& moveCount > 1 + 3 * rootNode
&& !inCheck
&& ( !captureOrPromotion
|| moveCountPruning
|| ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha))
Expand Down

0 comments on commit ec7f43e

Please sign in to comment.