From fa5be295a50b53568d5501e06926d5c5851412fc Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 13 Aug 2025 14:26:27 -0400 Subject: Integrate Kibitzer with macondo --- quacker/macondo.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'quacker/macondo.cpp') 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(); + } +} -- cgit v1.2.3