Skip to content

Commit 14a2e50

Browse files
xu-shawnvondele
authored andcommitted
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 #6207 Bench: 2884232
1 parent 5d1505d commit 14a2e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,10 @@ Value Search::Worker::search(
702702
if (depth >= 8 && ttData.move && pos.pseudo_legal(ttData.move) && pos.legal(ttData.move)
703703
&& !is_decisive(ttData.value))
704704
{
705-
do_move(pos, ttData.move, st, nullptr);
705+
pos.do_move(ttData.move, st);
706706
Key nextPosKey = pos.key();
707707
auto [ttHitNext, ttDataNext, ttWriterNext] = tt.probe(nextPosKey);
708-
undo_move(pos, ttData.move);
708+
pos.undo_move(ttData.move);
709709

710710
// Check that the ttValue after the tt move would also trigger a cutoff
711711
if (!is_valid(ttDataNext.value))

0 commit comments

Comments
 (0)