From 49d4feb50a52e8c58baa9cb943cf4dc2ac65f2fb Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 11 Mar 2007 10:04:00 +0000 Subject: [PATCH] Gary Wong points out that solosolver's verbose output is inconsistent in whether it numbers rows and columns from zero or from one. Standardise on one. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7385 cda61777-01e9-0310-a592-d414129be87e --- solo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solo.c b/solo.c index 19d91b4..c02e750 100644 --- a/solo.c +++ b/solo.c @@ -1629,7 +1629,7 @@ static int solver(int c, int r, digit *grid, int maxdiff) if (solver_show_working) { char *sep = ""; printf("%*srecursing on (%d,%d) [", - solver_recurse_depth*4, "", x, y); + solver_recurse_depth*4, "", x + 1, y + 1); for (i = 0; i < j; i++) { printf("%s%d", sep, list[i]); sep = " or "; @@ -1651,7 +1651,7 @@ static int solver(int c, int r, digit *grid, int maxdiff) #ifdef STANDALONE_SOLVER if (solver_show_working) printf("%*sguessing %d at (%d,%d)\n", - solver_recurse_depth*4, "", list[i], x, y); + solver_recurse_depth*4, "", list[i], x + 1, y + 1); solver_recurse_depth++; #endif @@ -1661,7 +1661,7 @@ static int solver(int c, int r, digit *grid, int maxdiff) solver_recurse_depth--; if (solver_show_working) { printf("%*sretracting %d at (%d,%d)\n", - solver_recurse_depth*4, "", list[i], x, y); + solver_recurse_depth*4, "", list[i], x + 1, y + 1); } #endif -- 2.11.0