shithub: moonfish

Download patch

ref: d7b5af5cfa30ad25a5553d19e9f29cd471349139
parent: 5814b38c60abe740f5ca8e1b8e25750974f05392
author: zamfofex <zamfofex@twdb.moe>
date: Fri Dec 29 02:51:26 EST 2023

add placebo depth information (for cutechess)

--- a/main.c
+++ b/main.c
@@ -85,10 +85,11 @@
 			else
 				score = moonfish_best_move(ctx, &move, btime, wtime);
 			
+			printf("info depth 4 ");
 			if (score >= moonfish_omega || score <= -moonfish_omega)
-				printf("info score mate %d\n", moonfish_countdown(score));
+				printf("score mate %d\n", moonfish_countdown(score));
 			else
-				printf("info score cp %d\n", score);
+				printf("score cp %d\n", score);
 			moonfish_to_uci(name, &move);
 			printf("bestmove %s\n", name);
 		}
--