diff options
author | pommicket <pommicket@gmail.com> | 2025-08-08 18:20:43 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-08 18:20:43 -0400 |
commit | 4c9d6ed3024d7869c427a7f6bd2f4f61feba027d (patch) | |
tree | 825cb60768ad68870140eb7981d9080b174e5981 /quacker/macondo.cpp | |
parent | 551c51c02649aeb38d72002d6bb70b58dbee1eb2 (diff) |
start extracting plays
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r-- | quacker/macondo.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
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 <QGridLayout> #include <QPushButton> -#include <QTimer> 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; - } } |