diff --git a/app/src/main/java/sudoku/Solver.java b/app/src/main/java/sudoku/Solver.java index 23f2134..1fea9c7 100644 --- a/app/src/main/java/sudoku/Solver.java +++ b/app/src/main/java/sudoku/Solver.java @@ -1,7 +1,7 @@ package sudoku; public class Solver implements SudokuSolver { - private int[][] board; + private int[][] board = null; public Solver() { board = new int[9][9]; @@ -15,10 +15,6 @@ public class Solver implements SudokuSolver { return board; } - public boolean solve() { - return solve(0, 0); - } - /** * Resets the board to all zeros */ @@ -26,6 +22,10 @@ public class Solver implements SudokuSolver { board = new int[9][9]; } + public boolean solve() { + return solve(0, 0); + } + /** * Recursive helper method for solve() *