From: Fabian Fichter Date: Thu, 21 Nov 2019 22:40:14 +0000 (+0100) Subject: Increase endgame king danger for xiangqi X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=17c008a32b387a072651e0942d25692ebff63573;p=fairystockfish.git Increase endgame king danger for xiangqi minixiangqi LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 508 W: 233 L: 145 D: 130 xiangqi LLR: 0.25 (-2.94,2.94) [0.00,10.00] Total: 2000 W: 602 L: 572 D: 826 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d993d2b..85a4c38 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -578,7 +578,7 @@ namespace { // Penalty if king flank is under attack, potentially moving toward the king score -= FlankAttacks * kingFlankAttack * (1 + 5 * pos.captures_to_hand() + pos.check_counting()); - if (pos.check_counting()) + if (pos.check_counting() || pos.xiangqi_general()) score += make_score(0, mg_value(score) / 2); // For drop games, king danger is independent of game phase