Skip to content

Commit

Permalink
In BlockedStorm, theirPawns includes ones attacked by us.
Browse files Browse the repository at this point in the history
Pawns heading towards our king tend to be dangerous whether or not we are attacking them so remove this test.

STC:
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 91184 W: 18196 L: 18137 D: 54851
Ptnml(0-2): 1580, 10656, 21092, 10653, 1611
https://tests.stockfishchess.org/tests/view/5ecc3f7080f2c838b9655841

LTC:
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 14152 W: 2045 L: 1937 D: 10170
Ptnml(0-2): 99, 1325, 4130, 1413, 109
https://tests.stockfishchess.org/tests/view/5ecc4f3180f2c838b9655861

closes #2702

Bench 4828973
  • Loading branch information
xoto10 authored and vondele committed May 26, 2020
1 parent d40d04c commit fb80957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pawns.cpp
Expand Up @@ -202,7 +202,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) {

Bitboard b = pos.pieces(PAWN) & ~forward_ranks_bb(Them, ksq);
Bitboard ourPawns = b & pos.pieces(Us) & ~pawnAttacks[Them];
Bitboard theirPawns = b & pos.pieces(Them) & ~pawnAttacks[Us];
Bitboard theirPawns = b & pos.pieces(Them);

Score bonus = make_score(5, 5);

Expand Down

0 comments on commit fb80957

Please sign in to comment.