diff options
author | scratko <m@scratko.xyz> | 2024-11-10 15:16:31 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-11 22:04:21 +0300 |
commit | 9023f43291b894f7670df2ffe513808ef6360954 (patch) | |
tree | e7b4c4d3689bcda7f4bfc949bc3f2ac1d580fc07 /main.cpp | |
parent | 0ddc597a0f2eeb0dc49f8a6ab4a8af0d615b6ece (diff) | |
download | picture-puzzle-9023f43291b894f7670df2ffe513808ef6360954.tar.gz picture-puzzle-9023f43291b894f7670df2ffe513808ef6360954.tar.bz2 picture-puzzle-9023f43291b894f7670df2ffe513808ef6360954.zip |
Added end game check
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -5,14 +5,14 @@ #include <time.h> #include "puzzle.hpp" +#include "gameplay.hpp" int main() { srand(time(nullptr)); - Fl_Window *win = new Fl_Window(325, 325, "15 puzzle"); - GameParams *params = GameParams::SetUpParams(); - params->NewGame(); - win->end(); + Fl_Window *win = new Fl_Window(325, 325, "Picture puzzle"); + GameParams *params = GameParams::SetUpParams(win); + PuzzleGame::StartGame(params); win->show(); return Fl::run(); return 0; |