ref: 370f631ee61401ca76d3a6f4a887cce59b94612d
parent: 2e051ff4bf5c6373c335ffd8c21d27ea4b9176cf
author: zamfofex <zamfofex@twdb.moe>
date: Thu Jan 9 10:10:04 EST 2025
avoid stalemates in winning positions
--- a/search.c
+++ b/search.c
@@ -282,7 +282,7 @@
short int score, child_score;
while (node != NULL) {- score = SHRT_MIN;
+ score = node->count == -2 ? 0 : SHRT_MIN;
for (i = 0 ; i < node->count ; i++) {child_score = -node->children[i].score;
if (score < child_score) score = child_score;
--
⑨