Node tm #107

Merged
rektdie merged 3 commits from node-tm into main 2025-09-14 14:42:12 +02:00
Showing only changes of commit 861a354215 - Show all commits
+5 -1
View File
@@ -747,9 +747,13 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) {
ctx->seldepth = 0;
SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
elapsed = ctx->sw.GetElapsedMS();
if (depth > 6) {
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
}
if (aw.alpha != -inf && currentResults.score <= aw.alpha) {
aw.WidenDown();
depth--;