Revert regressive minishogi patch
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 2 Jan 2019 13:55:23 +0000 (14:55 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 2 Jan 2019 13:55:23 +0000 (14:55 +0100)
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

index b1d65b3..345b1e1 100644 (file)
@@ -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);