back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..caf1a17
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,19 @@
+#include <FL/Fl.H>
+#include <FL/Fl_Window.H>
+#include <FL/Fl_Box.H>
+#include <stdlib.h>
+#include <time.h>
+
+#include "puzzle.hpp"
+
+int main()
+{
+ srand(time(nullptr));
+ Fl_Window *win = new Fl_Window(325, 325, "15 puzzle");
+ GameParams *params = GameParams::StartParams();
+ params->NewGame();
+ win->end();
+ win->show();
+ return Fl::run();
+ return 0;
+}