From 96b6dba17678b02bcdfd659f37da8c4316f177e6 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 1 Mar 2020 20:06:37 +0100 Subject: [PATCH] Consider board size in shogi king danger shogi LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 2688 W: 1391 L: 1251 D: 46 minishogi LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 2208 W: 1169 L: 1035 D: 4 --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4248f76..cf696d0 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -584,7 +584,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)) * 2 / (2 + 3 * !pos.shogi_doubled_pawn()); + score = make_score(mg_value(score), mg_value(score)) * 2 / (2 + 16 / pos.max_rank() * !pos.shogi_doubled_pawn()); if (T) Trace::add(KING, Us, score); -- 1.7.0.4