C# Class Lawnmover.Pattern

显示文件 Open project: ajlopez/TddRocks Class Usage Examples

Public Methods

Method Description
GetCell ( int nrow, int ncol ) : int
GetMinUnsolved ( ) : Cell
HasSolution ( ) : bool
IsSolved ( int nrow, int ncol ) : bool
IsValidColumnMove ( int ncol, int move ) : bool
IsValidRowMove ( int nrow, int move ) : bool
MoveColumn ( int ncol, int value ) : void
MoveRow ( int nrow, int value ) : void
Pattern ( int width, int height ) : System
SetRow ( int nrow, IList values ) : void
SetRow ( int nrow, string values ) : void

Method Details

GetCell() public method

public GetCell ( int nrow, int ncol ) : int
nrow int
ncol int
return int

GetMinUnsolved() public method

public GetMinUnsolved ( ) : Cell
return Cell

HasSolution() public method

public HasSolution ( ) : bool
return bool

IsSolved() public method

public IsSolved ( int nrow, int ncol ) : bool
nrow int
ncol int
return bool

IsValidColumnMove() public method

public IsValidColumnMove ( int ncol, int move ) : bool
ncol int
move int
return bool

IsValidRowMove() public method

public IsValidRowMove ( int nrow, int move ) : bool
nrow int
move int
return bool

MoveColumn() public method

public MoveColumn ( int ncol, int value ) : void
ncol int
value int
return void

MoveRow() public method

public MoveRow ( int nrow, int value ) : void
nrow int
value int
return void

Pattern() public method

public Pattern ( int width, int height ) : System
width int
height int
return System

SetRow() public method

public SetRow ( int nrow, IList values ) : void
nrow int
values IList
return void

SetRow() public method

public SetRow ( int nrow, string values ) : void
nrow int
values string
return void