summaryrefslogtreecommitdiff
path: root/quacker/macondo.h
blob: 77af35f0617ea28d86eb0532a62acef373d09f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <QWidget>

class QPushButton;
class QTimer;
namespace Quackle {
	class Game;
}
class MacondoBackend;

class Macondo : public QWidget {
Q_OBJECT
public:
	Macondo(Quackle::Game *);
public slots:
	void simulate();
	void updateResults();
private:
	enum class Command {
		None,
		Simulate,
		Solve,
	};
	QPushButton *m_simulateButton;
	QTimer *m_updateTimer;
	MacondoBackend *m_backend;
	int m_viewingPlyNumber = 0;
	Command m_command = Command::None;
};