back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-10-25 00:40:58 +0300
committerscratko <m@scratko.xyz>2024-10-25 00:50:53 +0300
commit365c27f05d5739213d3a98aa41dcc7f1cb0a6c60 (patch)
tree96fd9f7a1a808b6ab96e310037b9db376921d2f1 /main.cpp
downloadpicture-puzzle-365c27f05d5739213d3a98aa41dcc7f1cb0a6c60.tar.gz
picture-puzzle-365c27f05d5739213d3a98aa41dcc7f1cb0a6c60.tar.bz2
picture-puzzle-365c27f05d5739213d3a98aa41dcc7f1cb0a6c60.zip
Initial commit
Creating widgets with a split image
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;
+}