From: Fabian Fichter Date: Fri, 8 Feb 2019 22:53:36 +0000 (+0100) Subject: Decrease king evaluation divisor for shogi variants X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4c14cff67ccc57e83d099c2da5ba4b2e54e69263;p=fairystockfish.git Decrease king evaluation divisor for shogi variants euroshogi LLR: 2.98 (-2.94,2.94) [-10.00,5.00] Total: 250 W: 156 L: 90 D: 4 minishogi LLR: 3.31 (-2.94,2.94) [-10.00,5.00] Total: 500 W: 286 L: 213 D: 1 shogi LLR: 2.97 (-2.94,2.94) [-10.00,5.00] Total: 506 W: 281 L: 217 D: 8 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e5863ad..760053c 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -594,7 +594,7 @@ namespace { // For drop games, king danger is independent of game phase if (pos.captures_to_hand()) - score = make_score(mg_value(score), mg_value(score)) / (1 + 2 * !pos.shogi_doubled_pawn()); + score = make_score(mg_value(score), mg_value(score)) / (1 + !pos.shogi_doubled_pawn()); if (T) Trace::add(KING, Us, score);