Skip to content

Commit

Permalink
No NMP if unanswered promotion threat. Bench: 3478314
Browse files Browse the repository at this point in the history
  • Loading branch information
31m059 committed Jul 15, 2019
1 parent 8670795 commit c435d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Expand Up @@ -794,7 +794,8 @@ namespace {
&& ss->staticEval >= beta - 36 * depth / ONE_PLY + 225
&& !excludedMove
&& pos.non_pawn_material(us)
&& !more_than_one(pos.pieces(~us, PAWN) & (us == WHITE ? Rank2BB : Rank7BB))
&& ( !(pos.pieces(~us, PAWN) & (us == WHITE ? Rank2BB : Rank7BB))
|| (pos.pieces(us, PAWN) & (us == WHITE ? Rank7BB : Rank2BB)))
&& (ss->ply >= thisThread->nmpMinPly || us != thisThread->nmpColor))
{
assert(eval - beta >= 0);
Expand Down

0 comments on commit c435d4f

Please sign in to comment.