From 414a3e6ee3ab38215f9eba69939773ba62a9766e Mon Sep 17 00:00:00 2001 From: protonspring Date: Mon, 5 Feb 2018 17:27:59 +0100 Subject: [PATCH] =?utf8?q?=20=20=20=20Don=E2=80=99t=20score=20and=20sort?= =?utf8?q?=20all=20captures=20in=20RECAPTURES=20stage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For these recaptures, we’re are only considering those captures that recapture the recapture square (small portion of all the captures). Therefore, scoring all of the captures and pick_besting out of the whole group is not necessary. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 85583 W: 18978 L: 18983 D: 47622 http://tests.stockfishchess.org/tests/view/5a717faa0ebc590f2c86e9a7 LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 20231 W: 3533 L: 3411 D: 13287 http://tests.stockfishchess.org/tests/view/5a73ad330ebc5902971a96ba Bench: 5023593 --- src/movepick.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 9882960d..74da3205 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -307,14 +307,13 @@ Move MovePicker::next_move(bool skipQuiets) { case QSEARCH_RECAPTURES: cur = moves; endMoves = generate(pos, cur); - score(); ++stage; /* fallthrough */ case QRECAPTURES: while (cur < endMoves) { - move = pick_best(cur++, endMoves); + move = *cur++; if (to_sq(move) == recaptureSquare) return move; } -- 2.39.2