ref: 4212ef4bd2ce85c594d28f7e737fe280e827d1b3
parent: d0a824540b1ab2ae0abd6c35f2e1619b857e6bb2
author: Simon Tatham <anakin@pobox.com>
date: Sun Mar 11 06:04:00 EDT 2007
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. [originally from svn r7385]
--- a/solo.c
+++ b/solo.c
@@ -1629,7 +1629,7 @@
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 @@
#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 @@
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