X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=99c0cd6e1acd512ccc8eaa04cb8609a44f9a4cc0;hp=27e1dd3d362a294ec49e20a1dc148b3454186342;hb=7133598a98301cf84857d39194026b876da48b96;hpb=2f11c03bbf61d8da2e2b201e4607c4aa9b5a5dc4 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 27e1dd3d..99c0cd6e 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -743,12 +743,12 @@ namespace { && (pos.pieces(PAWN) & KingSide); // Compute the initiative bonus for the attacking side - int complexity = 9 * pe->pawn_asymmetry() + int complexity = 9 * pe->passed_count() + 11 * pos.count() + 9 * outflanking + 18 * pawnsOnBothFlanks + 49 * !pos.non_pawn_material() - -121 ; + -103 ; // Now apply the bonus: note that we find the attacking side by extracting // the sign of the endgame value, and that we carefully cap the bonus so @@ -776,7 +776,7 @@ namespace { if ( pos.opposite_bishops() && pos.non_pawn_material(WHITE) == BishopValueMg && pos.non_pawn_material(BLACK) == BishopValueMg) - sf = 8 + 4 * pe->pawn_asymmetry(); + sf = 16 + 4 * pe->passed_count(); else sf = std::min(40 + (pos.opposite_bishops() ? 2 : 7) * pos.count(strongSide), sf);