From 365c27f05d5739213d3a98aa41dcc7f1cb0a6c60 Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 25 Oct 2024 00:40:58 +0300 Subject: Initial commit Creating widgets with a split image --- main.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.cpp (limited to 'main.cpp') 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 +#include +#include +#include +#include + +#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; +} -- cgit v1.2.3