Original SudokuSolver.java interface, untouched

This commit is contained in:
Imbus 2023-12-05 12:44:45 +01:00
parent 1d016ee97f
commit 6de3e286ed

View file

@ -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);
}