diff options
author | scratko <m@scratko.xyz> | 2024-11-16 14:59:17 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-16 21:26:41 +0300 |
commit | 22d4fdabf17aebebfcb73c7d86b5bbc81b6530f4 (patch) | |
tree | 8c86594705005c380560e87b68b01993fc1928ef /main.cpp | |
parent | 060fe2ebc6f5ed26c445f95b3cd6c9ee5bc24e28 (diff) | |
download | picture-puzzle-22d4fdabf17aebebfcb73c7d86b5bbc81b6530f4.tar.gz picture-puzzle-22d4fdabf17aebebfcb73c7d86b5bbc81b6530f4.tar.bz2 picture-puzzle-22d4fdabf17aebebfcb73c7d86b5bbc81b6530f4.zip |
Added A* solution algorithm
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -12,13 +12,14 @@ int main() { srand(time(nullptr)); - Fl_Window *win = new Fl_Window(325, 355, "Picture puzzle"); - Fl_Sys_Menu_Bar *sys_bar = new Fl_Sys_Menu_Bar(0, 0, 165, 20, nullptr); - sys_bar->add("&File/&Load picture", nullptr, load_file_callback); + 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("&Option/&Show solution", nullptr, solve_problem_callback); + sys_bar->add("&Help/&Show solution", nullptr, solve_problem_callback, + params); sys_bar->add("&About", nullptr, about_callback); - GameParams *params = GameParams::SetUpParams(win); PuzzleGame::StartGame(params); win->show(); return Fl::run(); |