From: Stéphane Nicolet Date: Thu, 21 Jun 2018 23:28:02 +0000 (+0200) Subject: Increase outflanking weight to 12 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=34321fcc2d9f9c4e00fb3bfd0d3773d9b3bb1416;ds=inline Increase outflanking weight to 12 Give more incentive to king activity in the endgame by increasing the weight of the "outflanking" variable from 8 to 12 in the function evaluate_initiative(). Finished yellow after 133102 games at STC: LLR: -3.07 (-2.94,2.94) [0.00,4.00] Total: 133102 W: 29535 L: 29179 D: 74388 http://tests.stockfishchess.org/tests/view/5b2b63fe0ebc5902b2e54475 Passed LTC: LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 28027 W: 4918 L: 4672 D: 18437 http://tests.stockfishchess.org/tests/view/5b2ba39e0ebc5902b2e54a64 Closes https://github.com/official-stockfish/Stockfish/pull/1657 Bench: 4721753 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 26fd20bb..3f18d587 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -770,9 +770,9 @@ namespace { && (pos.pieces(PAWN) & KingSide); // Compute the initiative bonus for the attacking side - int complexity = 8 * outflanking - + 8 * pe->pawn_asymmetry() + int complexity = 8 * pe->pawn_asymmetry() + 12 * pos.count() + + 12 * outflanking + 16 * pawnsOnBothFlanks + 48 * !pos.non_pawn_material() -136 ;