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

Simplify collection of bad moves for history updates. #4818

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ namespace {
assert(0 < depth && depth < MAX_PLY);
assert(!(PvNode && cutNode));

Move pv[MAX_PLY+1], capturesSearched[32], quietsSearched[64];
Move pv[MAX_PLY+1], capturesSearched[32], quietsSearched[32];
StateInfo st;
ASSERT_ALIGNED(&st, Eval::NNUE::CacheLineSize);

Expand Down Expand Up @@ -1329,12 +1329,12 @@ namespace {


// If the move is worse than some previously searched move, remember it, to update its stats later
if (move != bestMove)
if (move != bestMove && moveCount <= 32)
{
if (capture && captureCount < 32)
if (capture)
capturesSearched[captureCount++] = move;

else if (!capture && quietCount < 64)
else
quietsSearched[quietCount++] = move;
}
}
Expand Down