X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=ac8bde741a385650f9a8155025fbfd99f03c5746;hp=4667d51531205f67bd77f255c56ca8c7a9c3818f;hb=e846a9306d6108fb24cb216689867777ac2b0c4f;hpb=b5581b7779b6e286fa2277625572996477d74b10 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 4667d515..ac8bde74 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -758,16 +758,12 @@ namespace { int outflanking = distance(pos.square(WHITE), pos.square(BLACK)) - distance(pos.square(WHITE), pos.square(BLACK)); - bool pawnsOnBothFlanks = (pos.pieces(PAWN) & QueenSide) - && (pos.pieces(PAWN) & KingSide); - // Compute the initiative bonus for the attacking side int complexity = 8 * pe->pawn_asymmetry() + 12 * pos.count() + 12 * outflanking - + 16 * pawnsOnBothFlanks + 48 * !pos.non_pawn_material() - -136 ; + -110 ; // 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