summaryrefslogtreecommitdiff
path: root/quacker/quacker.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-18 11:25:22 -0400
committerpommicket <pommicket@gmail.com>2025-08-18 11:25:22 -0400
commit831b26ed75321093ffd0c844f6a951d1ae5918c6 (patch)
treedcbc9ff98f716a1c0baf9712a2554f9f28f395dd /quacker/quacker.cpp
parent0652c48658802259959ea636111f10e5ca5ad7d9 (diff)
Stop process when solve returns moves
Diffstat (limited to 'quacker/quacker.cpp')
-rw-r--r--quacker/quacker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp
index d3945ac..cf1b4c7 100644
--- a/quacker/quacker.cpp
+++ b/quacker/quacker.cpp
@@ -1271,6 +1271,11 @@ void TopLevel::incrementSimulation()
if (m_macondo->anyUpdates()) {
updateMoveViews();
updateSimViews();
+ if (m_macondo->isSolving()) {
+ // stop after solver gives us moves
+ simulate(false);
+ return;
+ }
}
// check again in 100ms
m_simulationTimer->start(100);