chiark / gitweb /
The Light Up solver limits its recursion depth, so if it fails to find
authorSimon Tatham <anakin@pobox.com>
Mon, 23 Jan 2012 18:56:05 +0000 (18:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 23 Jan 2012 18:56:05 +0000 (18:56 +0000)
a solution then it should not deduce that no solution exists. Change
wording of the error message returned from the Solve user action.

[originally from svn r9387]

lightup.c

index 3747ec1cc7a19c4e268a1382e469834c6283da8e..47b49b227975280f6b060f2699485cd6cb512203 100644 (file)
--- a/lightup.c
+++ b/lightup.c
@@ -1677,7 +1677,7 @@ static char *solve_game(game_state *state, game_state *currstate,
     /* That didn't work; try solving from the clean puzzle. */
     solved = dup_game(state);
     if (dosolve(solved, sflags, NULL) > 0) goto solved;
-    *error = "Puzzle is not self-consistent.";
+    *error = "Unable to find a solution to this puzzle.";
     goto done;
 
 solved: