Skip to content

Commit

Permalink
More opposite castling
Browse files Browse the repository at this point in the history
Bench: 3051971
  • Loading branch information
snicolet committed Jan 7, 2019
1 parent f69106f commit 59f6ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Expand Up @@ -736,8 +736,8 @@ namespace {
template<Tracing T>
Score Evaluation<T>::initiative(Value eg) const {

int outflanking = distance<File>(pos.square<KING>(WHITE), pos.square<KING>(BLACK))
- distance<Rank>(pos.square<KING>(WHITE), pos.square<KING>(BLACK));
int outflanking = 2 * 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);
Expand Down

0 comments on commit 59f6ab4

Please sign in to comment.