From 9023f43291b894f7670df2ffe513808ef6360954 Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 10 Nov 2024 15:16:31 +0300 Subject: Added end game check --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 0cbe9ea..d5d20d5 100644 --- a/main.cpp +++ b/main.cpp @@ -5,14 +5,14 @@ #include #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; -- cgit v1.2.3