]> git.sesse.net Git - stockfish/commit
Limit double extensions
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 9 Jun 2021 21:23:13 +0000 (23:23 +0200)
committerStéphane Nicolet <cassio@free.fr>
Fri, 11 Jun 2021 18:33:24 +0000 (20:33 +0200)
commit559942d64de9497c9d6d13b22307b4b9e1ce8ecf
treee9f7c88e49f757a507264701ad63321db3d4375d
parent785b70809783430ff1e0bf856dac3b9bfa6fe826
Limit double extensions

Double extensions can lead to search explosions, for specific positions.
Currently, however, these double extensions are worth about 10Elo and cannot
be removed. This patch instead limits the number of double extensions given
to a maximum of 3.

This fixes https://github.com/official-stockfish/Stockfish/issues/3532
where the following testcase was shown to be problematic:

```
uci
setoption name Hash value 4
setoption name Contempt value 0
ucinewgame
position fen 8/Pk6/8/1p6/8/P1K5/8/6B1 w - - 37 130
go depth 20
```

passed STC:
https://tests.stockfishchess.org/tests/view/60c13161457376eb8bcaaa0f
LLR: 2.95 (-2.94,2.94) <-2.50,0.50>
Total: 73256 W: 6114 L: 6062 D: 61080
Ptnml(0-2): 222, 4912, 26306, 4968, 220

passed LTC:
https://tests.stockfishchess.org/tests/view/60c196fb457376eb8bcaaa6b
LLR: 2.94 (-2.94,2.94) <-2.50,0.50>
Total: 166440 W: 5559 L: 5594 D: 155287
Ptnml(0-2): 106, 4921, 73197, 4894, 102

closes https://github.com/official-stockfish/Stockfish/pull/3544

Bench: 5067605
src/search.cpp
src/search.h