C# Class MatrixWalk.MatrixRotatingWalk

Show file Open project: nzhul/TelerikAcademy Class Usage Examples

Public Methods

Method Description
MatrixRotatingWalk ( int dimentions ) : System
ToString ( ) : string

Private Methods

Method Description
CheckIfNextCellIsEmpty ( int row, int col, int directionRow, int directionCol ) : bool
FillAllFreeCells ( ) : void
FindAllFreeCell ( ) : void
GetNewDirection ( int &dirRow, int &dirCol ) : void
IsCellAvailable ( int row, int col ) : bool
IsInRange ( int value ) : bool

Method Details

MatrixRotatingWalk() public method

public MatrixRotatingWalk ( int dimentions ) : System
dimentions int
return System

ToString() public method

public ToString ( ) : string
return string