]> git.sesse.net Git - stockfish/commitdiff
Adjust initiative in pure pawn endgames
authorJerry Donald Watson <j1.donald1@gmail.com>
Mon, 12 Mar 2018 09:09:02 +0000 (09:09 +0000)
committerStéphane Nicolet <cassio@free.fr>
Mon, 12 Mar 2018 21:57:21 +0000 (22:57 +0100)
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

index f6764b18466ae4ad010f3ec57b7ed105b1314f04..6783ffd8595fcaa32f1e584ffdd2fca8362aeb41 100644 (file)
@@ -765,6 +765,7 @@ namespace {
                     +  8 * pe->pawn_asymmetry()
                     + 12 * pos.count<PAWN>()
                     + 16 * pawnsOnBothFlanks
+                    + 48 * !pos.non_pawn_material()
                     -136 ;
 
     // Now apply the bonus: note that we find the attacking side by extracting