Simplify qsearch stages in MovePicker
authorprotonspring <mike@whiteley.org>
Sun, 4 Feb 2018 13:57:57 +0000 (14:57 +0100)
committerStéphane Nicolet <cassio@free.fr>
Sun, 4 Feb 2018 13:57:57 +0000 (14:57 +0100)
commitd93baae2205c6adc023b474b852af03f139f792a
treeda862c807a6f2ffdc435d982d1b5c32e1dd6c1fb
parent44a7db0f9ac02d2461aff39e25f1ac9107ffbfac
Simplify qsearch stages in MovePicker

The difference between QCAPTURES_1 and QCAPTURES_2 quiescence search stages
boils down to a simple check of depth. The way it's being done now is
unnecessarily complex.

This patch is simpler, clearer, and easier to understand.

Passed SPRT[-3..1] test at STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 99755 W: 22158 L: 22192 D: 55405
http://tests.stockfishchess.org/tests/view/5a71f41c0ebc590f2c86e9cb

No functional change.
src/movepick.cpp