From 3686e719a14a49f54bff00b3df153e044a0206ab Mon Sep 17 00:00:00 2001 From: Joost Vandevondele Date: Sun, 16 Oct 2016 15:20:05 +0200 Subject: [PATCH] Simplify next_move by always scoring evasions For a default bench, this fixes the last valgrind error (jump on uninitialised value). Passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 187869 W: 33303 L: 33463 D: 121103 No functional change. --- src/movepick.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 95e60003..c187c3ad 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -271,8 +271,7 @@ Move MovePicker::next_move() { case EVASIONS_INIT: cur = moves; endMoves = generate(pos, cur); - if (endMoves - cur - (ttMove != MOVE_NONE) > 1) - score(); + score(); ++stage; case ALL_EVASIONS: -- 2.39.2