Sudoku
 All Classes Namespaces Functions Variables Properties
Public Member Functions | Properties
MainSudoku.SudokuData Class Reference

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...

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Creates the sudoku data, but does not load a file.


Member Function Documentation

bool MainSudoku.SudokuData.checkCell ( int  x,
int  y 
)

Checks if a single cell of the sudoku is consistent.

Parameters:
xRow of the cell
y
M
Returns:
True if the content of the cell is consistent

Checks if the sudoku has any inconsistence.

Returns:
If the sudoku is stable: True; Else: False

Checks if all the cells are filled. Used to know.

Returns:
If all the cels are file return True. Else returns False
void MainSudoku.SudokuData.loadFromFile ( string  filename)

Takes a filename, with a valid sudoku (check syntax), and loads the data information.

Parameters:
filenameRoute to the file with the sudoku

Solves the Sudoku.

Returns:
override string MainSudoku.SudokuData.ToString ( )

Returns a well formated string with the data of the sudoku.

Returns:

Property Documentation

int MainSudoku.SudokuData.this[introw, int col] [get, set]

Accesor methods to the data Matrix.

Parameters:
rowRow of the number
colColumn of the number
Returns:

The documentation for this class was generated from the following file: