X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=9af22264b89ff00fbdd247eb33468072d750a962;hp=8f4eb32f5789f4794e2b9d293a22dbfa8a5611fa;hb=e38eb2302d3d3451b387cc9524501d13f5ed63e4;hpb=0af24a14455bbcde181fff7632722ce55419991e diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8f4eb32f..9af22264 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -553,7 +553,7 @@ namespace { b &= ~pos.pieces() & ~ei.attackedBy[Them][PAWN] & (ei.attackedBy[Us][ALL_PIECES] | ~ei.attackedBy[Them][ALL_PIECES]); - + if (b) score += popcount(b) * PawnSafePush; @@ -904,14 +904,14 @@ namespace Eval { void init() { - const int MaxSlope = 87; - const int Peak = 12800; + const int MaxSlope = 8700; + const int Peak = 1280000; int t = 0; for (int i = 0; i < 400; ++i) { - t = std::min(Peak, std::min(i * i * 27 / 100, t + MaxSlope)); - KingDanger[i] = apply_weight(make_score(t / 10, 0), Weights[KingSafety]); + t = std::min(Peak, std::min(i * i * 27, t + MaxSlope)); + KingDanger[i] = apply_weight(make_score(t / 1000, 0), Weights[KingSafety]); } }