ref: 4d05e849db4bdcb99d88a0bd68f169b001e192ee
parent: 276ae5f65f9eba670b785be72e28b89720aaede9
author: zamfofex <zamfofex@twdb.moe>
date: Mon Jan 8 20:17:46 EST 2024
fix checkmate countdown reporting
--- a/search.c
+++ b/search.c
@@ -199,9 +199,9 @@
int moonfish_countdown(int score)
{score /= -moonfish_omega;
- if (score < 0) score += moonfish_depth;
+ if (score < 0) score += moonfish_depth + 1;
else score -= moonfish_depth;
- return score;
+ return score / 2;
}
static moonfish_result_t moonfish_start_search(void *data)
--
⑨