back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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;