Skip to content

Commit f3b296c

Browse files
TopoIogistsnicolet
authored andcommitted
Change advanced pawn push threshold
A pawn push is now considered to be "advanced" if the relative destination rank is > 6 (previously it was > 5). This affects the search heuristic. Also remove an assert concerning en passant moves in qsearch(). STC: LLR: 2.97 (-2.94,2.94) {-0.25,1.25} Total: 46744 W: 4224 L: 4040 D: 38480 Ptnml(0-2): 165, 3206, 16451, 3380, 170 https://tests.stockfishchess.org/tests/view/604746082433018de7a3872e LTC: LLR: 2.94 (-2.94,2.94) {0.25,1.25} Total: 107840 W: 4198 L: 3892 D: 99750 Ptnml(0-2): 58, 3472, 46557, 3772, 61 https://tests.stockfishchess.org/tests/view/60475eae2433018de7a38737 Closes #3389 Bench: 4796780
1 parent b742746 commit f3b296c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ Sergio Vieri (sergiovieri)
168168
sf-x
169169
Shane Booth (shane31)
170170
Shawn Varghese (xXH4CKST3RXx)
171+
Siad Daboul (Topologist)
171172
Stefan Geschwentner (locutus2)
172173
Stefano Cardanobile (Stefano80)
173174
Steinar Gunderson (sesse)

src/position.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ inline bool Position::pawn_passed(Color c, Square s) const {
312312

313313
inline bool Position::advanced_pawn_push(Move m) const {
314314
return type_of(moved_piece(m)) == PAWN
315-
&& relative_rank(sideToMove, to_sq(m)) > RANK_5;
315+
&& relative_rank(sideToMove, to_sq(m)) > RANK_6;
316316
}
317317

318318
inline int Position::pawns_on_same_color_squares(Color c, Square s) const {

src/search.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,15 +1575,13 @@ namespace {
15751575

15761576
moveCount++;
15771577

1578-
// Futility pruning
1578+
// Futility pruning and moveCount pruning
15791579
if ( bestValue > VALUE_TB_LOSS_IN_MAX_PLY
15801580
&& !givesCheck
15811581
&& futilityBase > -VALUE_KNOWN_WIN
15821582
&& !pos.advanced_pawn_push(move))
15831583
{
1584-
assert(type_of(move) != EN_PASSANT); // Due to !pos.advanced_pawn_push
15851584

1586-
// moveCount pruning
15871585
if (moveCount > 2)
15881586
continue;
15891587

0 commit comments

Comments
 (0)