Further increase king danger for xiangqi
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 10 Nov 2019 22:03:11 +0000 (23:03 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 10 Nov 2019 22:03:11 +0000 (23:03 +0100)
xiangqi
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 564 W: 199 L: 121 D: 244

src/evaluate.cpp

index 57887e4..8ff84e8 100644 (file)
@@ -554,11 +554,10 @@ namespace {
                  -  35 * bool(attackedBy[Us][BISHOP] & attackedBy[Us][KING])
                  + 148 * popcount(unsafeChecks)
                  +  98 * popcount(pos.blockers_for_king(Us))
-                 - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand()) / (1 + pos.check_counting())
+                 - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand() || pos.xiangqi_general()) / (1 + pos.check_counting())
                  -   6 * mg_value(score) / 8
                  +       mg_value(mobility[Them] - mobility[Us])
                  +   3 * kingFlankAttacks * kingFlankAttacks / 8
-                 + 500 * pos.xiangqi_general()
                  -   7;
 
     // Transform the kingDanger units into a Score, and subtract it from the evaluation