Skip to content

Commit

Permalink
🐛 Use max ply for selfdepth, regardless of whether it's last depth'…
Browse files Browse the repository at this point in the history
…s one or not (#1289)
  • Loading branch information
eduherminio authored Dec 16, 2024
1 parent 79b50e2 commit fbf2f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lynx/Search/IDDFS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ private SearchResult UpdateLastSearchResult(SearchResult? lastSearchResult,
var pvTableSpan = _pVTable.AsSpan();
var pvMoves = pvTableSpan[..pvTableSpan.IndexOf(0)].ToArray();

var maxDepthReached = _maxDepthReached.LastOrDefault(item => item != default);
var maxDepthReached = _maxDepthReached.Max();

var elapsedSeconds = Utils.CalculateElapsedSeconds(_stopWatch);

Expand Down

0 comments on commit fbf2f35

Please sign in to comment.