X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=e6938e189f4312f3eaff82f68c2645f9c0701533;hp=34ec48902cfe9986d5c786e11b92fcdc5efc8566;hb=a6fe035977830a3a91add3a5b043609d7c9a0c04;hpb=8bb7a737087ca82cb97380bf06bbfa659dec1f73 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 34ec4890..e6938e18 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -480,15 +480,12 @@ namespace { + 4 * tropism - 873 * !pos.count(Them) - 6 * mg_value(score) / 8 + + mg_value(mobility[Them] - mobility[Us]) - 30; // Transform the kingDanger units into a Score, and subtract it from the evaluation if (kingDanger > 0) - { - int mobilityDanger = mg_value(mobility[Them] - mobility[Us]); - kingDanger = std::max(0, kingDanger + mobilityDanger); score -= make_score(kingDanger * kingDanger / 4096, kingDanger / 16); - } } // Penalty when our king is on a pawnless flank