diff --git a/app/src/main/java/sudoku/SudokuSolver.java b/app/src/main/java/sudoku/SudokuSolver.java new file mode 100644 index 0000000..8f33998 --- /dev/null +++ b/app/src/main/java/sudoku/SudokuSolver.java @@ -0,0 +1,31 @@ +package sudoku; + +public interface SudokuSolver{ + + // Work in progress + + /** + * Set sudoku board, numbers 1-9 are fixed values, 0 is unsolved. + */ + void setBoard(int[][] board); + + /** + * Get the sudoku board + */ + int[][] getBoard(); + + /** + * Solve soduko + * @return true if solution could be found + */ + boolean solve(); + + /** + * Check if digit is legal on the current board + * @param row + * @param col + * @param nbr + * @return true if legal + */ + boolean legal(int row, int col, int nbr); +} \ No newline at end of file