ref: e99b05234836f9b02d998e6e78c6655c38ae1c8f
parent: 35703d9178edd9dd21cbf5055cb0e07f30019c5e
author: zamfofex <zamfofex@twdb.moe>
date: Tue Nov 14 17:11:12 EST 2023
make time management more concervative
--- a/search.c
+++ b/search.c
@@ -214,17 +214,17 @@
int i;
int score;
- d = our_time * 6 / 5 - their_time;
+ d = our_time - their_time + our_time / 16;
if (d < 0) d = 0;
i = 3;
t = time(NULL);
score = moonfish_best_move_depth(ctx, best_move, i);
- t = time(NULL) - t + 1;
+ t = time(NULL) - t + 2;
for (;;)
{- t *= 24;
+ t *= 32;
if (t > d) break;
i++;
if (i >= 8) break;
--
⑨