Skip to content

Commit

Permalink
Merge pull request official-stockfish#394 from ianfab/horde_supported
Browse files Browse the repository at this point in the history
Fix pawn evaluation for horde with inverse colors
  • Loading branch information
ddugovic authored Aug 10, 2017
2 parents c0bc001 + 8399a99 commit 1f119af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pawns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ namespace {
neighbours = ourPawns & adjacent_files_bb(f);
phalanx = neighbours & rank_bb(s);
#ifdef HORDE
if (pos.is_horde() && rank_of(s) == RANK_1)
supported = false;
if (pos.is_horde() && relative_rank(Us, s) == RANK_1)
supported = 0;
else
#endif
supported = neighbours & rank_bb(s - Up);
Expand Down

0 comments on commit 1f119af

Please sign in to comment.