back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-11-10 15:16:31 +0300
committerscratko <m@scratko.xyz>2024-11-11 22:04:21 +0300
commit9023f43291b894f7670df2ffe513808ef6360954 (patch)
treee7b4c4d3689bcda7f4bfc949bc3f2ac1d580fc07 /main.cpp
parent0ddc597a0f2eeb0dc49f8a6ab4a8af0d615b6ece (diff)
downloadpicture-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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 0cbe9ea..d5d20d5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;