Property | Type | Description | |
---|---|---|---|
BoardHeight | int | ||
BoardWidth | int | ||
XOffsetEast | int | ||
XOffsetWest | int | ||
YOffsetNorth | int | ||
YOffsetSouth | int |
Method | Description | |
---|---|---|
CreatePoint ( Point point, int xOffset, int yOffset ) : Point | ||
GetAttackablePoints ( Point queenPosition ) : IEnumerable |
||
GoEast ( Point point ) : Point | ||
GoNorth ( Point point ) : Point | ||
GoNorthEast ( Point point ) : Point | ||
GoNorthWest ( Point point ) : Point | ||
GoSouth ( Point point ) : Point | ||
GoSouthEast ( Point point ) : Point | ||
GoSouthWest ( Point point ) : Point | ||
GoWest ( Point point ) : Point | ||
IsOnTheBoard ( Point point ) : bool | ||
Solve ( ) : string |
Method | Description | |
---|---|---|
CountQueensAttacked ( IEnumerable |
public static CreatePoint ( Point point, int xOffset, int yOffset ) : Point | ||
point | Point | |
xOffset | int | |
yOffset | int | |
return | Point |
public static GetAttackablePoints ( Point queenPosition ) : IEnumerable |
||
queenPosition | Point | |
return | IEnumerable |
public static GoNorth ( Point point ) : Point | ||
point | Point | |
return | Point |
public static GoNorthEast ( Point point ) : Point | ||
point | Point | |
return | Point |
public static GoNorthWest ( Point point ) : Point | ||
point | Point | |
return | Point |
public static GoSouth ( Point point ) : Point | ||
point | Point | |
return | Point |
public static GoSouthEast ( Point point ) : Point | ||
point | Point | |
return | Point |
public static GoSouthWest ( Point point ) : Point | ||
point | Point | |
return | Point |
public static IsOnTheBoard ( Point point ) : bool | ||
point | Point | |
return | bool |