File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -758,12 +758,16 @@ namespace {
758
758
int outflanking = distance<File>(pos.square <KING>(WHITE), pos.square <KING>(BLACK))
759
759
- distance<Rank>(pos.square <KING>(WHITE), pos.square <KING>(BLACK));
760
760
761
+ bool pawnsOnBothFlanks = (pos.pieces (PAWN) & QueenSide)
762
+ && (pos.pieces (PAWN) & KingSide);
763
+
761
764
// Compute the initiative bonus for the attacking side
762
765
int complexity = 8 * pe->pawn_asymmetry ()
763
766
+ 12 * pos.count <PAWN>()
764
767
+ 12 * outflanking
768
+ + 16 * pawnsOnBothFlanks
765
769
+ 48 * !pos.non_pawn_material ()
766
- -110 ;
770
+ -118 ;
767
771
768
772
// Now apply the bonus: note that we find the attacking side by extracting
769
773
// the sign of the endgame value, and that we carefully cap the bonus so
You can’t perform that action at this time.
0 commit comments