Commits

Shlomi Fish committed c8cc2ab

Add support for FCS_STATE_FLARES_PLAN_ERROR to the multi-threaded solver.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@2864 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

Comments (0)

Files changed (1)

fc-solve/source/threaded_range_solver.c

                 fflush(stdout);
                 print_int_wrapper(-1);
             }
+            else if (ret == FCS_STATE_FLARES_PLAN_ERROR)
+            {
+                const char * error_string;
+                
+                error_string =
+                    freecell_solver_user_get_last_error_string(user.instance);
+
+                fprintf(stderr, "Flares Plan: %s\n", error_string);
+
+                goto theme_error;
+            }
             else if (ret == FCS_STATE_IS_NOT_SOLVEABLE)
             {
 #ifndef WIN32
     total_num_iters += total_num_iters_temp;
     pthread_mutex_unlock(&total_num_iters_lock);
 
+theme_error:
     freecell_solver_user_free(user.instance);
 
 ret_label: