Increase king danger for bughouse
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 14 Mar 2020 18:56:11 +0000 (19:56 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 14 Mar 2020 18:56:11 +0000 (19:56 +0100)
bughouse
Total: 250 W: 143 L: 106 D: 1

src/evaluate.cpp

index ff0b25b..8982ec1 100644 (file)
@@ -567,7 +567,7 @@ namespace {
                  +  69 * kingAttacksCount[Them] * (2 + 8 * pos.check_counting() + pos.captures_to_hand()) / 2
                  +   3 * kingFlankAttack * kingFlankAttack / 8
                  +       mg_value(mobility[Them] - mobility[Us])
-                 - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand() || pos.king_type() == WAZIR) / (1 + pos.check_counting())
+                 - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand() || pos.king_type() == WAZIR) / (1 + pos.check_counting() + pos.two_boards())
                  - 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING])
                  -   6 * mg_value(score) / 8
                  -   4 * kingFlankDefense