back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/solution_algorithm.cpp
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-11-22 02:31:26 +0300
committerscratko <m@scratko.xyz>2024-11-22 02:31:26 +0300
commitec2e197c9342b04cae6ef24cb293eabe57100dc8 (patch)
treee6e5dc3191d1bccbed1499c33a119feba199e412 /solution_algorithm.cpp
parent2f17165bd4c86885a75424d4f0ce6198c46c84b4 (diff)
downloadpicture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.tar.gz
picture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.tar.bz2
picture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.zip
Program terminationHEADmaster
Termination of the program while the computer is solving the algorithm (by esc key)
Diffstat (limited to 'solution_algorithm.cpp')
-rw-r--r--solution_algorithm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/solution_algorithm.cpp b/solution_algorithm.cpp
index f0b7861..d96374b 100644
--- a/solution_algorithm.cpp
+++ b/solution_algorithm.cpp
@@ -178,6 +178,7 @@ void ASearch::ShowSolution(Node *goal)
(*puzzle_pos)->position(goal->state[i].x, goal->state[i].y);
gp->win->redraw();
Fl::flush();
+ Fl::check();
usleep(40000);
}
}