diff options
author | scratko <m@scratko.xyz> | 2024-11-22 02:31:26 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-11-22 02:31:26 +0300 |
commit | ec2e197c9342b04cae6ef24cb293eabe57100dc8 (patch) | |
tree | e6e5dc3191d1bccbed1499c33a119feba199e412 /solution_algorithm.cpp | |
parent | 2f17165bd4c86885a75424d4f0ce6198c46c84b4 (diff) | |
download | picture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.tar.gz picture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.tar.bz2 picture-puzzle-ec2e197c9342b04cae6ef24cb293eabe57100dc8.zip |
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.cpp | 1 |
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); } } |