From: Fabian Fichter Date: Sun, 28 Apr 2019 15:55:21 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/official-stockfish/Stockfish X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=db96228f2b2d918f38150579435f8502b3cbbb16;p=fairystockfish.git Merge branch 'master' of https://github.com/official-stockfish/Stockfish bench: 3246425 --- db96228f2b2d918f38150579435f8502b3cbbb16 diff --cc src/evaluate.cpp index 0407bfd,7e6260c..0409ad5 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@@ -551,11 -464,12 +551,12 @@@ namespace int kingFlankAttacks = popcount(b1) + popcount(b2); kingDanger += kingAttackersCount[Them] * kingAttackersWeight[Them] - + 69 * kingAttacksCount[Them] - + 185 * popcount(kingRing[Us] & weak) + + 69 * kingAttacksCount[Them] * (1 + 2 * !!pos.max_check_count()) + + 185 * popcount(kingRing[Us] & weak) * (1 + pos.captures_to_hand() + !!pos.max_check_count()) - 100 * bool(attackedBy[Us][KNIGHT] & attackedBy[Us][KING]) + - 35 * bool(attackedBy[Us][BISHOP] & attackedBy[Us][KING]) + 150 * popcount(pos.blockers_for_king(Us) | unsafeChecks) - - 873 * !pos.count(Them) + - 873 * !(pos.count(Them) || pos.captures_to_hand()) / (1 + !!pos.max_check_count()) - 6 * mg_value(score) / 8 + mg_value(mobility[Them] - mobility[Us]) + 5 * kingFlankAttacks * kingFlankAttacks / 16