From 840605c14e30c58806690ca9b87a44108fa37913 Mon Sep 17 00:00:00 2001 From: Jerry Donald Watson Date: Mon, 12 Mar 2018 09:09:02 +0000 Subject: [PATCH] Adjust initiative in pure pawn endgames King and pawn endgames are typically decisive, and a small advantage is often sufficient to win. Therefore we now take this into account when computing the initiative adjustment. This idea came from a series of patches by Gian-Carlo Pascutto. STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 48770 W: 10203 L: 9845 D: 28722 http://tests.stockfishchess.org/tests/view/5aa58cce0ebc59029780ff8d LTC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 22252 W: 3572 L: 3366 D: 15314 http://tests.stockfishchess.org/tests/view/5aa5b27c0ebc59029780ffad Ideas for future developement: - There have been a number of changes to the initiative calculation lately. Perhaps the coefficients could be tuned again. - It may be possible to add special knowledge for other endgames in the initiative calculation. Closes https://github.com/official-stockfish/Stockfish/pull/1481 Bench: 5750110 --- src/evaluate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f6764b18..6783ffd8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -765,6 +765,7 @@ namespace { + 8 * pe->pawn_asymmetry() + 12 * pos.count() + 16 * pawnsOnBothFlanks + + 48 * !pos.non_pawn_material() -136 ; // Now apply the bonus: note that we find the attacking side by extracting -- 2.39.2