From: Fabian Fichter Date: Fri, 3 Apr 2020 21:48:33 +0000 (+0200) Subject: Tweak king safety evaluation for Janggi X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e99f9e1c933d85c568924b1de93ae2c1482f0f54;p=fairystockfish.git Tweak king safety evaluation for Janggi janggi LLR: 3.00 (-2.94,2.94) [0.00,10.00] Total: 590 W: 325 L: 220 D: 45 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 58a7c27..638789f 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -584,7 +584,8 @@ 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() + pos.two_boards() + pos.makpong()) + - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand() || (pos.king_type() == WAZIR && !pos.diagonal_lines())) + / (1 + pos.check_counting() + pos.two_boards() + pos.makpong()) - 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING]) - 6 * mg_value(score) / 8 - 4 * kingFlankDefense