summaryrefslogtreecommitdiff
path: root/quacker/macondo.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-13 14:26:27 -0400
committerpommicket <pommicket@gmail.com>2025-08-13 14:26:27 -0400
commitfa5be295a50b53568d5501e06926d5c5851412fc (patch)
treeb9bcde56d48ba2a1818ccb4ff218da289abf7216 /quacker/macondo.cpp
parent306eff0aaf77d94f70a91d2ba8c2fe0a1046df51 (diff)
Integrate Kibitzer with macondo
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r--quacker/macondo.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp
index 3b941e1..04e6b70 100644
--- a/quacker/macondo.cpp
+++ b/quacker/macondo.cpp
@@ -34,7 +34,7 @@ void Macondo::simulate() {
stop();
clearMoves();
MacondoSimulateOptions options;
- m_backend->simulate(options);
+ m_backend->simulate(options, m_movesFromKibitzer);
}
void Macondo::gameChanged(Quackle::Game *game) {
@@ -56,3 +56,10 @@ void Macondo::gotSimMoves(const Quackle::MoveList &moves) {
m_moves = moves;
m_anyUpdates = true;
}
+
+void Macondo::positionChanged(const Quackle::GamePosition *position) {
+ if (!m_backend->isRunning()) {
+ // perhaps new moves were generated
+ m_movesFromKibitzer = position->moves();
+ }
+}