diff options
author | scratko <m@scratko.xyz> | 2024-10-25 00:40:58 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-10-25 00:50:53 +0300 |
commit | 365c27f05d5739213d3a98aa41dcc7f1cb0a6c60 (patch) | |
tree | 96fd9f7a1a808b6ab96e310037b9db376921d2f1 /main.cpp | |
download | 15-puzzle-master.tar.gz 15-puzzle-master.tar.bz2 15-puzzle-master.zip |
Creating widgets with a split image
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 19 |
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; +} |