summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-16 19:48:30 +1300
committerDavid Phillips <david@sighup.nz>2019-03-16 19:49:59 +1300
commit6f81596763820040ad2305cf94b06e4142640940 (patch)
treedf5b9ebe8de164e1edcd0d543a8a80184b425cd5
parent734c30391d96c4cb74e328f94b05b33b4e2db98a (diff)
downloadsudoku-6f81596763820040ad2305cf94b06e4142640940.tar.xz
Remove old bug, correct typo
-rw-r--r--solve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/solve.c b/solve.c
index 9cfa38f..a5f02bf 100644
--- a/solve.c
+++ b/solve.c
@@ -33,7 +33,7 @@ int solve_row_col(struct cell (*b)[9][9])
{
total++;
} else {
- val = i + 1;
+ val = i;
}
}
if (total == 8) {
@@ -165,7 +165,7 @@ int cell_fill_certainties(struct cell (*b)[9][9], int bx, int by)
DEBUG_LOG("will_take_count is %d\n", will_take_count);
/* Don't make indeterminate choices here*/
if (will_take_count == 1) {
- printf("%c%c must be %d because it is the only place in its boxthis will fit\n",
+ printf("%c%c must be %d because it is the only place in its box this will fit\n",
NAME_CELL(will_take_x, will_take_y),
val);
(*b)[will_take_x][will_take_y].val = val;