Consider endgame king danger for bughouse
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:10:02 +0000 (15:10 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:10:02 +0000 (15:10 +0100)
bughouse
Total: 500 W: 270 L: 225 D: 5

src/evaluate.cpp

index 34f8bcb..4fc31b0 100644 (file)
@@ -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)