From 8f36cfc2903ba763203a6744158845740d5d9928 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 10 Nov 2019 23:03:11 +0100 Subject: [PATCH] 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 --- src/evaluate.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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 -- 1.7.0.4