From: Fabian Fichter Date: Sun, 10 Nov 2019 22:03:11 +0000 (+0100) Subject: Further increase king danger for xiangqi X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8f36cfc2903ba763203a6744158845740d5d9928;p=fairystockfish.git Further increase king danger for xiangqi xiangqi LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 564 W: 199 L: 121 D: 244 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 57887e4..8ff84e8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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