]> git.sesse.net Git - stockfish/commit - src/position.h
Remove advanced_pawn_push()
authorVizvezdenec <Vizvezdenec@gmail.com>
Thu, 11 Mar 2021 11:51:20 +0000 (14:51 +0300)
committerStéphane Nicolet <cassio@free.fr>
Wed, 17 Mar 2021 09:34:02 +0000 (10:34 +0100)
commitd58e83695f1dbe5bb75ca9e5d6775757b5fd5f7a
treed79d4da94cdb5f4fafca72a2e3cf39d02f0a7d43
parent830f597134bc942554283833623f12aa970bcad6
Remove advanced_pawn_push()

Continuation of work by @topologist: we now do futility pruning and movecount
pruning in qsearch() for pawn pushes up to the 7th rank. So the condition to
avoid the pruning is if the move is a promotion or not. This allows to get rid
of the advanced_pawn_push() function in position.h alltogether.

Passed STC
https://tests.stockfishchess.org/tests/view/6048c5842433018de7a387e6
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 34424 W: 3081 L: 3015 D: 28328
Ptnml(0-2): 110, 2442, 12052, 2488, 120

Passed LTC
https://tests.stockfishchess.org/tests/view/6048f7d22433018de7a387f0
LLR: 2.94 (-2.94,2.94) {-0.75,0.25}
Total: 142024 W: 5170 L: 5202 D: 131652
Ptnml(0-2): 50, 4678, 61613, 4596, 75

Closes https://github.com/official-stockfish/Stockfish/pull/3390

Bench: 4339126
src/position.h
src/search.cpp