Skip to content

Commit

Permalink
Fix pawn evaluation for horde with inverse colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Aug 10, 2017
1 parent c0bc001 commit 8399a99
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 8399a99

Please sign in to comment.