#include #include #include #include #include #include #include "puzzle.hpp" #include "gameplay.hpp" #include "menu_callbacks.hpp" int main() { srand(time(nullptr)); Fl_Window *win = new Fl_Window(320, 355, "Picture puzzle"); GameParams *params = GameParams::SetUpParams(win); Fl_Sys_Menu_Bar *sys_bar = new Fl_Sys_Menu_Bar(0, 0, 150, 20, nullptr); sys_bar->add("&File/&Load file", nullptr, load_file_callback); sys_bar->add("&File/&Exit", nullptr, exit_callback); sys_bar->add("&Help/&Show solution", nullptr, solve_problem_callback, params); sys_bar->add("&About", nullptr, about_callback); PuzzleGame::StartGame(params); win->show(); return Fl::run(); return 0; }