Skip to content

Commit d309197

Browse files
mcostalbazamar
authored andcommitted
Retire PawnsFileSpan
It is useless. Tested as no regression: STC LLR: 4.06 (-2.94,2.94) [-3.00,1.00] Total: 140718 W: 28527 L: 28568 D: 83623 LTC LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 60034 W: 10359 L: 10303 D: 39372 bench: 6564212 Resolves #88
1 parent d9caede commit d309197

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/pawns.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ namespace {
5757
S( 0, 0), S( 0, 0), S(0, 0), S(0, 0),
5858
S(20,20), S(40,40), S(0, 0), S(0, 0) };
5959

60-
// Bonus for file distance of the two outermost pawns
61-
const Score PawnsFileSpan = S(0, 8);
62-
6360
// Unsupported pawn penalty
6461
const Score UnsupportedPawnPenalty = S(20, 10);
6562

@@ -183,10 +180,6 @@ namespace {
183180
b = e->semiopenFiles[Us] ^ 0xFF;
184181
e->pawnSpan[Us] = b ? int(msb(b) - lsb(b)) : 0;
185182

186-
// In endgame it's better to have pawns on both wings. So give a bonus according
187-
// to file distance between left and right outermost pawns.
188-
value += PawnsFileSpan * e->pawnSpan[Us];
189-
190183
return value;
191184
}
192185

0 commit comments

Comments
 (0)