This class has the sudoku internal data. This we store the Matrix of numbers and we compute algorithms to solve/check if the sudoku is solved.
More...
Public Member Functions |
| SudokuData () |
| Creates the sudoku data, but does not load a file.
|
void | loadFromFile (string filename) |
| Takes a filename, with a valid sudoku (check syntax), and loads the data information.
|
override string | ToString () |
| Returns a well formated string with the data of the sudoku.
|
bool | checkSudoku () |
| Checks if the sudoku has any inconsistence.
|
bool | checkCell (int x, int y) |
| Checks if a single cell of the sudoku is consistent.
|
bool | Complete () |
| Checks if all the cells are filled. Used to know.
|
bool | SolveSudoku () |
| Solves the Sudoku.
|
Properties |
int | this[introw, int col] [get, set] |
| Accesor methods to the data Matrix.
|
This class has the sudoku internal data. This we store the Matrix of numbers and we compute algorithms to solve/check if the sudoku is solved.