diff options
author | pommicket <pommicket@gmail.com> | 2025-08-08 19:06:56 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-08 19:06:56 -0400 |
commit | eb4ac13af80fdde8d4e869d9d1fb404e29a158dc (patch) | |
tree | 96dad459bde457d381b22e8c7ae23ed24725e64a /quacker/macondo.cpp | |
parent | 4c9d6ed3024d7869c427a7f6bd2f4f61feba027d (diff) |
more move extraction; not working yet
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<Quackle::Move> &)), this, SLOT(gotSimMoves(const std::vector<Quackle::Move> &))); } void Macondo::simulate() { MacondoBackend::SimulateOptions options; m_backend->simulate(options); } + +void Macondo::gotSimMoves(const std::vector<Quackle::Move> &moves) { + printf("got %zu moves\n",moves.size()); + for (const Quackle::Move &move: moves) { + std::cout << move << std::endl; + } +} |