Simplify search functions according DRY principle

Passed STC non-regression bounds
https://tests.stockfishchess.org/tests/view/6870db4bfa93cf16d3bb286a
LLR: 3.00 (-2.94,2.94) <-1.75,0.25>
Total: 182016 W: 46735 L: 46673 D: 88608
Ptnml(0-2): 368, 19895, 50465, 19867, 413

closes https://github.com/official-stockfish/Stockfish/pull/6161

no functional change
This commit is contained in:
Guenther Demetz
2025-07-28 19:35:28 +02:00
committed by Joost VandeVondele
parent 90c83c381f
commit b6082ba750
2 changed files with 16 additions and 31 deletions
+2 -2
View File
@@ -297,8 +297,8 @@ class Worker {
private:
void iterative_deepening();
void do_move(Position& pos, const Move move, StateInfo& st);
void do_move(Position& pos, const Move move, StateInfo& st, const bool givesCheck);
void do_move(Position& pos, const Move move, StateInfo& st, Stack* const ss);
void do_move(Position& pos, const Move move, StateInfo& st, const bool givesCheck, Stack* const ss);
void do_null_move(Position& pos, StateInfo& st);
void undo_move(Position& pos, const Move move);
void undo_null_move(Position& pos);