Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nmpColor #4511

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ namespace {
&& ss->staticEval >= beta - 20 * depth - improvement / 13 + 253 + complexity / 25
&& !excludedMove
&& pos.non_pawn_material(us)
&& (ss->ply >= thisThread->nmpMinPly || us != thisThread->nmpColor))
&& (ss->ply >= thisThread->nmpMinPly))
{
assert(eval - beta >= 0);

Expand Down Expand Up @@ -828,9 +828,8 @@ namespace {
assert(!thisThread->nmpMinPly); // Recursive verification is not allowed

// Do verification search at high depths, with null move pruning disabled
// for us, until ply exceeds nmpMinPly.
// until ply exceeds nmpMinPly.
thisThread->nmpMinPly = ss->ply + 3 * (depth-R) / 4;
thisThread->nmpColor = us;

Value v = search<NonPV>(pos, ss, beta-1, beta, depth-R, false);

Expand Down
1 change: 0 additions & 1 deletion src/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class Thread {
size_t pvIdx, pvLast;
std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
int selDepth, nmpMinPly;
Color nmpColor;
Value bestValue, optimism[COLOR_NB];

Position rootPos;
Expand Down