ref: d398d7b35438ff5b8a94b721dde6724146a4b0c8
parent: fd2eff5de608733ac4461c3c7a5e73733f859ee7
author: zamfofex <zamfofex@twdb.moe>
date: Thu Dec 28 09:01:21 EST 2023
consolidate time management (for TCEC)
--- a/search.c
+++ b/search.c
@@ -253,7 +253,7 @@
if (d < 0) d = 0;
d += our_time / 8;
- i = 3;
+ i = 4;
t0 = moonfish_clock(ctx);
score = moonfish_best_move_depth(ctx, best_move, i);
@@ -266,9 +266,9 @@
t *= 32;
if (t > d) break;
i++;
- if (i >= 8) break;
+ if (i >= 16) break;
}
- if (i == 3) return score;
+ if (i == 4) return score;
return moonfish_best_move_depth(ctx, best_move, i);
}
--
⑨