Files
Stockfish/src
J. Oster a260c9a8a2 Fix incorrect pruning in qsearch
Only do countermove based pruning in qsearch if we already have a move with a better score than a TB loss.

This patch fixes a bug (started as 843a961) that incorrectly prunes moves if in check,
and adds an assert to make sure no wrong mate scores are given in the future.
It replaces a no-op moveCount check with a check for bestValue.

Initially discussed in #3171 and later in #3199, #3198 and #3210.
This PR effectively closes #3171
It also likely fixes #3196 where this causes user visible incorrect TB scores,
which probably result from these incorrect mate scores.

Passed STC and LTC non-regression tests.
https://tests.stockfishchess.org/tests/view/5f9ef8dabca9bf35bae7f648
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 21672 W: 2339 L: 2230 D: 17103
Ptnml(0-2): 126, 1689, 7083, 1826, 112

https://tests.stockfishchess.org/tests/view/5f9f0caebca9bf35bae7f666
LLR: 2.97 (-2.94,2.94) {-0.75,0.25}
Total: 33152 W: 1551 L: 1485 D: 30116
Ptnml(0-2): 27, 1308, 13832, 1390, 19

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

Bench: 3625915
2020-11-02 19:41:17 +01:00
..
2020-09-02 07:32:10 +02:00
2020-08-06 16:37:45 +02:00
2020-08-23 01:53:41 +02:00
2020-08-23 01:53:41 +02:00
2020-08-06 16:37:45 +02:00
2020-08-06 16:37:45 +02:00
2020-11-02 19:41:17 +01:00
2020-09-21 10:41:10 +02:00
2020-10-22 20:18:12 +02:00
2020-08-23 01:53:41 +02:00
2020-08-06 16:37:45 +02:00
2020-09-25 17:44:14 +02:00
2020-08-23 01:53:41 +02:00
2020-08-06 16:37:45 +02:00
2020-10-05 19:01:46 +02:00
2020-08-06 16:37:45 +02:00
2020-08-26 07:11:26 +02:00
2020-08-06 16:37:45 +02:00
2020-11-02 19:41:17 +01:00
2020-09-21 10:41:10 +02:00
2020-09-21 10:41:10 +02:00
2020-08-06 16:37:45 +02:00
2020-08-06 16:37:45 +02:00
2020-08-06 16:37:45 +02:00
2020-08-26 07:11:26 +02:00
2020-09-21 10:41:10 +02:00
2020-08-06 16:37:45 +02:00
2020-09-21 10:41:10 +02:00