From 7fea2267e78de935af6010d5ac7300e51f471601 Mon Sep 17 00:00:00 2001 From: scratko Date: Mon, 18 Nov 2024 02:45:54 +0300 Subject: Uploading custom images --- solution_algorithm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'solution_algorithm.cpp') diff --git a/solution_algorithm.cpp b/solution_algorithm.cpp index 0955534..70a9ace 100644 --- a/solution_algorithm.cpp +++ b/solution_algorithm.cpp @@ -1,5 +1,6 @@ #include "solution_algorithm.hpp" #include "puzzle.hpp" +#include "gameplay.hpp" #include #include @@ -7,6 +8,7 @@ #include #include #include +#include typedef std::vector state_type; @@ -176,7 +178,7 @@ void ASearch::ShowSolution(Node *goal) }); (*puzzle_pos)->position(goal->state[i].x, goal->state[i].y); gp->win->redraw(); - usleep(80000); - Fl::wait(); + Fl::flush(); + usleep(40000); } } -- cgit v1.2.3