diff options
author | scratko <m@scratko.xyz> | 2024-11-18 02:45:54 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-18 15:32:49 +0300 |
commit | 7fea2267e78de935af6010d5ac7300e51f471601 (patch) | |
tree | 42a417b778c6f826b84bcc6515c292bd862dcd99 /solution_algorithm.cpp | |
parent | 22d4fdabf17aebebfcb73c7d86b5bbc81b6530f4 (diff) | |
download | picture-puzzle-7fea2267e78de935af6010d5ac7300e51f471601.tar.gz picture-puzzle-7fea2267e78de935af6010d5ac7300e51f471601.tar.bz2 picture-puzzle-7fea2267e78de935af6010d5ac7300e51f471601.zip |
Uploading custom images
Diffstat (limited to 'solution_algorithm.cpp')
-rw-r--r-- | solution_algorithm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <memory> #include <vector> @@ -7,6 +8,7 @@ #include <stdio.h> #include <unistd.h> #include <FL/Fl.H> +#include <FL/fl_ask.H> typedef std::vector<GameParams::coordinates> 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); } } |