From 831b26ed75321093ffd0c844f6a951d1ae5918c6 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 18 Aug 2025 11:25:22 -0400 Subject: Stop process when solve returns moves --- quacker/macondo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quacker/macondo.cpp') 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) { -- cgit v1.2.3