Skip to content

Commit

Permalink
Do not allow horde first-rank pawns to be doubled
Browse files Browse the repository at this point in the history
STC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 2274 W: 1149 L: 1097 D: 28
http://35.161.250.236:6543/tests/view/5a730db56e23db0fbab0d346

LTC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 4801 W: 2387 L: 2354 D: 60
http://35.161.250.236:6543/tests/view/5a735a4c6e23db0fbab0d349
  • Loading branch information
ddugovic committed Feb 2, 2018
1 parent 8b11863 commit 80ea8ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pawns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,11 @@ namespace {
stoppers = theirPawns & passed_pawn_mask(Us, s);
lever = theirPawns & PawnAttacks[Us][s];
leverPush = theirPawns & PawnAttacks[Us][s + Up];
#ifdef HORDE
if (pos.is_horde() && relative_rank(Us, s) == RANK_1)
doubled = 0;
else
#endif
doubled = ourPawns & (s - Up);
neighbours = ourPawns & adjacent_files_bb(f);
phalanx = neighbours & rank_bb(s);
Expand Down

0 comments on commit 80ea8ef

Please sign in to comment.