From ec2e197c9342b04cae6ef24cb293eabe57100dc8 Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 22 Nov 2024 02:31:26 +0300 Subject: Program termination Termination of the program while the computer is solving the algorithm (by esc key) --- solution_algorithm.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'solution_algorithm.cpp') 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); } } -- cgit v1.2.3