diff options
author | pommicket <pommicket@gmail.com> | 2025-08-12 23:04:05 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-12 23:04:05 -0400 |
commit | e43c01bd11560561daa771463c57442c3b8a761d (patch) | |
tree | a040ea23eaf10d8a7362f523777a8b61e8b55041 /quacker/macondo.h | |
parent | a1a21037c465a1a01b2ca13b70f89becfc93546e (diff) |
Integrate Macondo into move chooser
Diffstat (limited to 'quacker/macondo.h')
-rw-r--r-- | quacker/macondo.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/quacker/macondo.h b/quacker/macondo.h index 18441b5..de12fe1 100644 --- a/quacker/macondo.h +++ b/quacker/macondo.h @@ -1,9 +1,10 @@ #ifndef MACONDO_H #define MACONDO_H -#include <QWidget> +#include "view.h" +#include "game.h" -class QPushButton; +class QCheckBox; class QTimer; namespace Quackle { class Game; @@ -12,27 +13,26 @@ namespace Quackle { class MacondoBackend; struct MacondoInitOptions; class MoveBox; -class Macondo : public QWidget { +class Macondo : public View { Q_OBJECT public: - Macondo(Quackle::Game *); + Macondo(Quackle::Game *, MoveBox *); ~Macondo(); void setGame(Quackle::Game *); + // stop current analysis + void stop(); + // should Macondo be used for simulations? + bool useForSimulation() const; +signals: + void newMoves(const Quackle::MoveList *); public slots: void simulate(); -private slots: - void gotSimMoves(const Quackle::MoveList &moves); private: - enum class Command { - None, - Simulate, - Solve, - }; - QPushButton *m_simulateButton; + QCheckBox *m_useMacondo; Quackle::Game *m_game; MacondoBackend *m_backend; + Quackle::MoveList m_moves; int m_viewingPlyNumber = 0; - Command m_command = Command::None; MoveBox *m_moveBox; std::unique_ptr<MacondoInitOptions> initOptions; }; |