Skip to content

Commit

Permalink
remove pawnsonbothflanks. +6
Browse files Browse the repository at this point in the history
  • Loading branch information
protonspring committed May 15, 2019
1 parent 3a572ff commit eda5f0e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,16 +739,12 @@ namespace {
int outflanking = distance<File>(pos.square<KING>(WHITE), pos.square<KING>(BLACK))
- distance<Rank>(pos.square<KING>(WHITE), pos.square<KING>(BLACK));

bool pawnsOnBothFlanks = (pos.pieces(PAWN) & QueenSide)
&& (pos.pieces(PAWN) & KingSide);

// Compute the initiative bonus for the attacking side
int complexity = 9 * pe->passed_count()
+ 11 * pos.count<PAWN>()
+ 9 * outflanking
+ 18 * pawnsOnBothFlanks
+ 49 * !pos.non_pawn_material()
-103 ;
-97 ;

// 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
Expand Down

0 comments on commit eda5f0e

Please sign in to comment.