summaryrefslogtreecommitdiff
path: root/quacker/macondo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r--quacker/macondo.cpp8
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;
+ }
+}