From 15fb752e8502f0b5c7e5f579dd3ff0eb8baabf3b Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 21 Aug 2025 21:49:21 -0400 Subject: Fix various bugs with Macondo moves --- quacker/macondo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'quacker/macondo.cpp') diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index a222126..f732b32 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -1,6 +1,5 @@ /* TODO: -- save options - detect Macondo crashing? - configurable max plies - other peg/endgame options @@ -118,7 +117,6 @@ bool Macondo::simulate() { } if (isRunning()) stop(); - clearMoves(); MacondoSimulateOptions options; return m_backend->simulate(options, m_movesFromKibitzer); } @@ -132,7 +130,6 @@ void Macondo::solve() { bool wasSolving = m_isSolving; if (isRunning()) stop(); - clearMoves(); if (wasSolving) { emit stoppedSolver(); } else { @@ -183,7 +180,7 @@ bool Macondo::useForSimulation() const { } void Macondo::gotMoves(const Quackle::MoveList &moves) { - m_moves = moves; + m_game->currentPosition().setMoves(moves); m_anyUpdates = true; if (m_isSolving && moves.size() > 0) { emit setCandidateMove(&moves[0]); -- cgit v1.2.3