From eb4ac13af80fdde8d4e869d9d1fb404e29a158dc Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 8 Aug 2025 19:06:56 -0400 Subject: more move extraction; not working yet --- quacker/macondo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'quacker/macondo.cpp') diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index cb65110..8c53beb 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -17,9 +17,17 @@ Macondo::Macondo(Quackle::Game *game) : QWidget() { MacondoBackend::InitOptions initOptions(execPath); m_backend = new MacondoBackend(game, initOptions); connect(m_simulateButton, SIGNAL(clicked()), this, SLOT(simulate())); + connect(m_backend, SIGNAL(gotSimMoves(const std::vector &)), this, SLOT(gotSimMoves(const std::vector &))); } void Macondo::simulate() { MacondoBackend::SimulateOptions options; m_backend->simulate(options); } + +void Macondo::gotSimMoves(const std::vector &moves) { + printf("got %zu moves\n",moves.size()); + for (const Quackle::Move &move: moves) { + std::cout << move << std::endl; + } +} -- cgit v1.2.3