back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/solution_algorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'solution_algorithm.cpp')
-rw-r--r--solution_algorithm.cpp6
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);
}
}