Skip to content

Commit

Permalink
Always clear history and killer moves, no matter if ponder hit
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Oct 23, 2023
1 parent 09af3da commit 5fc687e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/Lynx/Search/IDDFS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,11 @@ public sealed partial class Engine

await _engineWriter.WriteAsync(InfoCommand.SearchResultInfo(lastSearchResult));

for (int d = 0; d < Configuration.EngineSettings.MaxDepth - 2; ++d)
{
_killerMoves[0, d] = _previousKillerMoves[0, d + 2];
_killerMoves[1, d] = _previousKillerMoves[1, d + 2];
}

depth = lastSearchResult.Depth + 1; // Already reduced by 2
}
else
{
Array.Clear(_killerMoves);
Array.Clear(_historyMoves);
}

Array.Clear(_killerMoves);
Array.Clear(_historyMoves);

do
{
Expand Down

0 comments on commit 5fc687e

Please sign in to comment.