shithub: moonfish

Download patch

ref: ae70278d35d32cc0ff04a2350a65de5e4ae336c1
parent: 4936afe52154c847c7c3cbfcdea019f191a789df
author: zamfofex <zamfofex@twdb.moe>
date: Tue Nov 14 08:10:17 EST 2023

tweak time management further

--- a/search.c
+++ b/search.c
@@ -181,10 +181,9 @@
 	int i;
 	int score;
 	
-	d = (our_time - their_time) / 4;
-	if (d < 0) d = 0;
-	d += our_time / 16;
-	if (d > 30) d = 30;
+	d = (our_time * 9 / 8 - their_time) / 4;
+	if (d < 5) d = 5;
+	if (d > 20) d = 20;
 	
 	i = 4;
 	t = time(NULL);
--