diff options
author | pommicket <pommicket@gmail.com> | 2025-08-21 21:49:21 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-21 21:49:21 -0400 |
commit | 15fb752e8502f0b5c7e5f579dd3ff0eb8baabf3b (patch) | |
tree | 73fbd83ead7022ff3e9eeafc97f043dd61a85059 /quacker/macondo.cpp | |
parent | b721c4a19a10f436329f2441156f45b19924205a (diff) |
Fix various bugs with Macondo moves
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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]); |