aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unfinished/group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unfinished/group.c b/unfinished/group.c
index 60030ba..c27c8f5 100644
--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -312,9 +312,9 @@ static int solver_normal(struct latin_solver *solver, void *vctx)
* So we pick any a,b,c we like; then if we know ab, bc, and
* (ab)c we can fill in a(bc).
*/
- for (i = 1; i < w; i++)
- for (j = 1; j < w; j++)
- for (k = 1; k < w; k++) {
+ for (i = 0; i < w; i++)
+ for (j = 0; j < w; j++)
+ for (k = 0; k < w; k++) {
if (!grid[i*w+j] || !grid[j*w+k])
continue;
if (grid[(grid[i*w+j]-1)*w+k] &&