From 440476781129df70420069f4dd3e3b99441536c1 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Fri, 10 Apr 2026 14:12:24 +0300 Subject: [PATCH 1/4] No functional change No functional change --- src/uci.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index da47ff06ce0..e17533afd3f 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -100,7 +100,7 @@ void UCIEngine::loop() { std::istringstream is(cmd); token.clear(); // Avoid a stale if getline() returns nothing or a blank line - is >> std::skipws >> token; + is >> token; if (token == "quit" || token == "stop") engine.stop(); @@ -154,10 +154,10 @@ void UCIEngine::loop() { { std::pair, std::string> files[2]; - if (is >> std::skipws >> files[0].second) + if (is >> files[0].second) files[0].first = files[0].second; - if (is >> std::skipws >> files[1].second) + if (is >> files[1].second) files[1].first = files[1].second; engine.save_network(files); @@ -248,7 +248,7 @@ void UCIEngine::bench(std::istream& args) { for (const auto& cmd : list) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go" || token == "eval") { @@ -330,7 +330,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go") { @@ -381,7 +381,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> std::skipws >> token; + is >> token; if (token == "go") { From 1b42ea5fa1c2c1ee6c3565d40191acd70f5eccec Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Fri, 10 Apr 2026 14:19:37 +0300 Subject: [PATCH 2/4] restore master restore master --- src/uci.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index e17533afd3f..da47ff06ce0 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -100,7 +100,7 @@ void UCIEngine::loop() { std::istringstream is(cmd); token.clear(); // Avoid a stale if getline() returns nothing or a blank line - is >> token; + is >> std::skipws >> token; if (token == "quit" || token == "stop") engine.stop(); @@ -154,10 +154,10 @@ void UCIEngine::loop() { { std::pair, std::string> files[2]; - if (is >> files[0].second) + if (is >> std::skipws >> files[0].second) files[0].first = files[0].second; - if (is >> files[1].second) + if (is >> std::skipws >> files[1].second) files[1].first = files[1].second; engine.save_network(files); @@ -248,7 +248,7 @@ void UCIEngine::bench(std::istream& args) { for (const auto& cmd : list) { std::istringstream is(cmd); - is >> token; + is >> std::skipws >> token; if (token == "go" || token == "eval") { @@ -330,7 +330,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> token; + is >> std::skipws >> token; if (token == "go") { @@ -381,7 +381,7 @@ void UCIEngine::benchmark(std::istream& args) { for (const auto& cmd : setup.commands) { std::istringstream is(cmd); - is >> token; + is >> std::skipws >> token; if (token == "go") { From c65ac8b969003a5992bb51bfb2e1db3e60f3adb9 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Fri, 10 Apr 2026 19:22:49 +0300 Subject: [PATCH 3/4] No functional change No functional change --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 0214bf4d269..3b2bfba0d4c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -721,7 +721,7 @@ Value Search::Worker::search( ss->ttHit = ttHit; ttData.move = rootNode ? rootMoves[pvIdx].pv[0] : ttHit ? ttData.move : Move::none(); ttData.value = ttHit ? value_from_tt(ttData.value, ss->ply, pos.rule50_count()) : VALUE_NONE; - ss->ttPv = excludedMove ? ss->ttPv : PvNode || (ttHit && ttData.is_pv); + ss->ttPv = excludedMove ? ss->ttPv : PvNode || ttData.is_pv; ttCapture = ttData.move && pos.capture_stage(ttData.move); // Step 5. Static evaluation of the position @@ -1562,7 +1562,6 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) ss->ttHit = ttHit; ttData.move = ttHit ? ttData.move : Move::none(); ttData.value = ttHit ? value_from_tt(ttData.value, ss->ply, pos.rule50_count()) : VALUE_NONE; - pvHit = ttHit && ttData.is_pv; // At non-PV nodes we check for an early TT cutoff if (!PvNode && ttData.depth >= DEPTH_QS @@ -1737,7 +1736,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) // Save gathered info in transposition table. The static evaluation // is saved as it was before adjustment by correction history. - ttWriter.write(posKey, value_to_tt(bestValue, ss->ply), pvHit, + ttWriter.write(posKey, value_to_tt(bestValue, ss->ply), ttData.is_pv, bestValue >= beta ? BOUND_LOWER : BOUND_UPPER, DEPTH_QS, bestMove, unadjustedStaticEval, tt.generation()); From 300a5f394666f2cc92ea743d93975a5d0e9a3913 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Fri, 10 Apr 2026 19:27:23 +0300 Subject: [PATCH 4/4] No functional change No functional change --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 3b2bfba0d4c..0b9c70e5402 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1531,7 +1531,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) Key posKey; Move move, bestMove; Value bestValue, value, futilityBase; - bool pvHit, givesCheck, capture; + bool givesCheck, capture; int moveCount; // Step 1. Initialize node