Skip to content

Commit

Permalink
Increase outflanking weight to 12
Browse files Browse the repository at this point in the history
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 official-stockfish#1657

Bench: 4721753
  • Loading branch information
snicolet authored and CounterPly committed Oct 16, 2018
1 parent 0de017a commit bc7dd79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<PAWN>()
+ 12 * outflanking
+ 16 * pawnsOnBothFlanks
+ 48 * !pos.non_pawn_material()
-136 ;
Expand Down

0 comments on commit bc7dd79

Please sign in to comment.