From f08b282c3b97aa9754afb4a0957a1088ecaf096c Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 2 Jan 2019 14:55:23 +0100 Subject: [PATCH] Revert regressive minishogi patch Further testing indicates that the initial test results were flawed. minishogi LLR: 2.98 (-2.94,2.94) [0.00,10.00] Total: 806 W: 437 L: 327 D: 42 --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b1d65b3..345b1e1 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -580,7 +580,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 + !pos.shogi_doubled_pawn()); + score = make_score(mg_value(score), mg_value(score)) / (1 + 2 * !pos.shogi_doubled_pawn()); if (T) Trace::add(KING, Us, score); -- 1.7.0.4