From 14a2e50a3d3cb7eafdc5a33256496040d90cf1cd Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Wed, 30 Jul 2025 17:07:08 -0700 Subject: [PATCH] Simplify key after Passed Non-regression STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 534016 W: 139438 L: 139771 D: 254807 Ptnml(0-2): 2098, 63469, 136136, 63278, 2027 https://tests.stockfishchess.org/tests/view/688ac64d502b34dd5e7110a4 Passed Non-regression LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 43980 W: 11346 L: 11149 D: 21485 Ptnml(0-2): 31, 4689, 12353, 4886, 31 https://tests.stockfishchess.org/tests/view/688ea8a47d68fe4f7f130eb3 closes https://github.com/official-stockfish/Stockfish/pull/6207 Bench: 2884232 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index bf454bbe8..32ad708c8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -702,10 +702,10 @@ Value Search::Worker::search( if (depth >= 8 && ttData.move && pos.pseudo_legal(ttData.move) && pos.legal(ttData.move) && !is_decisive(ttData.value)) { - do_move(pos, ttData.move, st, nullptr); + pos.do_move(ttData.move, st); Key nextPosKey = pos.key(); auto [ttHitNext, ttDataNext, ttWriterNext] = tt.probe(nextPosKey); - undo_move(pos, ttData.move); + pos.undo_move(ttData.move); // Check that the ttValue after the tt move would also trigger a cutoff if (!is_valid(ttDataNext.value))