From: Fabian Fichter Date: Wed, 6 Feb 2019 20:56:33 +0000 (+0100) Subject: Decrease king danger for drop variants X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=cca0dbae49f685a140166b7f8f72c3794048f05a;p=fairystockfish.git Decrease king danger for drop variants crazyhouse STC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 3167 W: 1606 L: 1461 D: 100 http://35.161.250.236:6543/tests/view/5c4c3cac6e23db07348e860b crazyhouse LTC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 7620 W: 3785 L: 3576 D: 259 http://35.161.250.236:6543/tests/view/5c4f6a756e23db07348e8615 shogi LLR: 2.96 (-2.94,2.94) [-10.00,5.00] Total: 828 W: 435 L: 374 D: 19 minishogi LLR: 2.53 (-2.94,2.94) [-10.00,5.00] Total: 2000 W: 1018 L: 974 D: 8 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index cce030a..0a7de34 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -556,7 +556,7 @@ namespace { unsafeChecks &= mobilityArea[Them]; kingDanger += kingAttackersCount[Them] * kingAttackersWeight[Them] - + 102 * kingAttacksCount[Them] * (1 + pos.captures_to_hand() + 2 * !!pos.max_check_count()) + + 102 * kingAttacksCount[Them] * (1 + 2 * !!pos.max_check_count()) + 191 * popcount(kingRing[Us] & weak) * (1 + pos.captures_to_hand() + !!pos.max_check_count()) + 143 * popcount(pos.blockers_for_king(Us) | unsafeChecks) - 848 * !(pos.count(Them) || pos.captures_to_hand()) / (1 + !!pos.max_check_count())