From 4c9d6ed3024d7869c427a7f6bd2f4f61feba027d Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 8 Aug 2025 18:20:43 -0400 Subject: start extracting plays --- quacker/macondo.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'quacker/macondo.cpp') diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp index 83e4553..cb65110 100644 --- a/quacker/macondo.cpp +++ b/quacker/macondo.cpp @@ -4,10 +4,8 @@ #include #include -#include Macondo::Macondo(Quackle::Game *game) : QWidget() { - m_updateTimer = new QTimer(this); QGridLayout *layout = new QGridLayout(this); m_simulateButton = new QPushButton(tr("Simulate")); layout->addWidget(m_simulateButton, 0, 0); @@ -19,25 +17,9 @@ 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_updateTimer, SIGNAL(timeout()), this, SLOT(updateResults())); - m_updateTimer->setInterval(1000); } void Macondo::simulate() { MacondoBackend::SimulateOptions options; m_backend->simulate(options); - m_updateTimer->start(); -} - -void Macondo::updateResults() { - switch (m_backend->command()) { - case MacondoCommand::None: - break; - case MacondoCommand::Simulate: - m_backend->getSimResults(); - break; - case MacondoCommand::Solve: - // TODO - break; - } } -- cgit v1.2.3