Node tm #107
+5
-1
@@ -747,9 +747,13 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) {
|
|||||||
ctx->seldepth = 0;
|
ctx->seldepth = 0;
|
||||||
|
|
||||||
SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
|
SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
|
||||||
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
|
|
||||||
elapsed = ctx->sw.GetElapsedMS();
|
elapsed = ctx->sw.GetElapsedMS();
|
||||||
|
|
||||||
|
if (depth > 6) {
|
||||||
|
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
|
||||||
|
}
|
||||||
|
|
||||||
if (aw.alpha != -inf && currentResults.score <= aw.alpha) {
|
if (aw.alpha != -inf && currentResults.score <= aw.alpha) {
|
||||||
aw.WidenDown();
|
aw.WidenDown();
|
||||||
depth--;
|
depth--;
|
||||||
|
|||||||
Reference in new issue
Block a user