C# Class Sudoku.Board

Inheritance: IBoard
Show file Open project: ElemarJR/Sudoku Class Usage Examples

Public Methods

Method Description
Board ( ) : System
Board ( int board ) : System
GetCellValue ( Columns column, Rows row ) : Values
GetColumnValues ( Columns column ) : Values
GetDeniedValues ( Columns column, Rows row ) : Values
GetRegionValues ( Columns oneCellColumn, Rows oneCellRow ) : Values
GetRowValues ( Rows row ) : Values
GetValueOptions ( Columns column, Rows row ) : IEnumerable
MakeMove ( Move move ) : Board
MakeMoves ( ) : Board
Solve ( ) : bool
ToString ( ) : string
UnmakeMove ( Move move ) : Board

Private Methods

Method Description
CouldPutValueInSquare ( Columns column, Rows row, Values value ) : bool
GenerateMoves ( ) : IEnumerable
NumberOfSquaresInColumnCouldUseValue ( Columns column, Values value ) : int
NumberOfSquaresInRegionCouldUseValue ( Columns column, Rows row, Values value ) : int
NumberOfSquaresInRowCouldUseValue ( Rows row, Values value ) : int

Method Details

Board() public method

public Board ( ) : System
return System

Board() public method

public Board ( int board ) : System
board int
return System

GetCellValue() public method

public GetCellValue ( Columns column, Rows row ) : Values
column Columns
row Rows
return Values

GetColumnValues() public method

public GetColumnValues ( Columns column ) : Values
column Columns
return Values

GetDeniedValues() public method

public GetDeniedValues ( Columns column, Rows row ) : Values
column Columns
row Rows
return Values

GetRegionValues() public method

public GetRegionValues ( Columns oneCellColumn, Rows oneCellRow ) : Values
oneCellColumn Columns
oneCellRow Rows
return Values

GetRowValues() public method

public GetRowValues ( Rows row ) : Values
row Rows
return Values

GetValueOptions() public method

public GetValueOptions ( Columns column, Rows row ) : IEnumerable
column Columns
row Rows
return IEnumerable

MakeMove() public method

public MakeMove ( Move move ) : Board
move Move
return Board

MakeMoves() public method

public MakeMoves ( ) : Board
return Board

Solve() public method

public Solve ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string

UnmakeMove() public method

public UnmakeMove ( Move move ) : Board
move Move
return Board