X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=95729e4aade6bea4d01a3fe776116aa91cc37c3d;hp=b1e94ab7cf86e38a5765fbd465709e3cbfecdcfd;hb=af1ddfd83b59a98f7f23f75419f0492fc7e2e85f;hpb=3913726d1c8ef3b994dd8090c98814fa7e7f5874 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b1e94ab7..95729e4a 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -157,7 +157,6 @@ namespace { // Assorted bonuses and penalties constexpr Score BishopPawns = S( 3, 7); constexpr Score CloseEnemies = S( 6, 0); - constexpr Score Connectivity = S( 3, 1); constexpr Score CorneredBishop = S( 50, 50); constexpr Score Hanging = S( 52, 30); constexpr Score HinderPassedPawn = S( 4, 0); @@ -165,7 +164,7 @@ namespace { constexpr Score KnightOnQueen = S( 21, 11); constexpr Score LongDiagonalBishop = S( 22, 0); constexpr Score MinorBehindPawn = S( 16, 0); - constexpr Score Overload = S( 10, 5); + constexpr Score Overload = S( 16, 7); constexpr Score PawnlessFlank = S( 20, 80); constexpr Score RookOnPawn = S( 8, 24); constexpr Score SliderOnQueen = S( 42, 21); @@ -558,10 +557,7 @@ namespace { score += Hanging * popcount(weak & ~attackedBy[Them][ALL_PIECES]); - // Bonus for overload (non-pawn enemies attacked once or more and defended exactly once) - b = nonPawnEnemies - & attackedBy[Us][ALL_PIECES] - & attackedBy[Them][ALL_PIECES] & ~attackedBy2[Them]; + b = weak & nonPawnEnemies & attackedBy[Them][ALL_PIECES]; score += Overload * popcount(b); } @@ -607,10 +603,6 @@ namespace { score += SliderOnQueen * popcount(b & safeThreats & attackedBy2[Us]); } - // Connectivity: ensure that knights, bishops, rooks, and queens are protected - b = (pos.pieces(Us) ^ pos.pieces(Us, PAWN, KING)) & attackedBy[Us][ALL_PIECES]; - score += Connectivity * popcount(b); - if (T) Trace::add(THREAT, Us, score);