diff options
author | pommicket <pommicket@gmail.com> | 2025-08-18 11:25:22 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-18 11:25:22 -0400 |
commit | 831b26ed75321093ffd0c844f6a951d1ae5918c6 (patch) | |
tree | dcbc9ff98f716a1c0baf9712a2554f9f28f395dd /quacker/macondo.cpp | |
parent | 0652c48658802259959ea636111f10e5ca5ad7d9 (diff) |
Stop process when solve returns moves
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index a6d5d9d..ef7372b 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -92,8 +92,9 @@ bool Macondo::useForSimulation() const { void Macondo::gotMoves(const Quackle::MoveList &moves) { m_moves = moves; m_anyUpdates = true; - if (moves.size() == 1) + if (m_isSolving && moves.size() > 0) { emit setCandidateMove(&moves[0]); + } } void Macondo::positionChanged(const Quackle::GamePosition *position) { |