aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2020-08-09 09:01:54 -0400
committerBryan Brattlof <hello@bryanbrattlof.com>2020-08-09 09:03:38 -0400
commit1eeb777c57d844e4f64dace43a62e2c86700733a (patch)
tree5ff4534013b24b6c0e9d3b468a338e517af67ba0
parent79ddf104c674fcef4f90119372e838d0a270a7d5 (diff)
downloadsudoku-1eeb777c57d844e4f64dace43a62e2c86700733a.tar.gz
sudoku-1eeb777c57d844e4f64dace43a62e2c86700733a.tar.bz2
c: global PUZZLE is not a booleanHEADcanon
Once all the squares in the sudoku puzzle 'solve' will exit the 'while' loop with a solved puzzle. This means the global PUZZLE has been solved and we should return true here, not PUZZLE. This solved the unknown in 789c5ff
-rw-r--r--c/sudoku.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/sudoku.c b/c/sudoku.c
index 8d36d92..cac251f 100644
--- a/c/sudoku.c
+++ b/c/sudoku.c
@@ -75,7 +75,7 @@ bool solve()
i++;
}
- return PUZZLE;
+ return true;
}