From 1361247b9f39c5c1d6c95dfadfb8e91eda45878a Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 6 Mar 2020 15:10:02 +0100 Subject: [PATCH] Consider endgame king danger for bughouse bughouse Total: 500 W: 270 L: 225 D: 5 --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 34f8bcb..4fc31b0 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -583,7 +583,7 @@ namespace { score += make_score(0, mg_value(score) / 2); // For drop games, king danger is independent of game phase - if (pos.captures_to_hand()) + if (pos.captures_to_hand() || pos.two_boards()) score = make_score(mg_value(score), mg_value(score)) * 2 / (2 + 16 / pos.max_rank() * !pos.shogi_doubled_pawn()); if (T) -- 1.7.0.4