summaryrefslogtreecommitdiff
path: root/quacker/macondo.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-21 21:49:21 -0400
committerpommicket <pommicket@gmail.com>2025-08-21 21:49:21 -0400
commit15fb752e8502f0b5c7e5f579dd3ff0eb8baabf3b (patch)
tree73fbd83ead7022ff3e9eeafc97f043dd61a85059 /quacker/macondo.cpp
parentb721c4a19a10f436329f2441156f45b19924205a (diff)
Fix various bugs with Macondo moves
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r--quacker/macondo.cpp5
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]);