C# Class GeneticAlgorithms.EightQueensSolver

Mostrar archivo Open project: handcraftsman/GeneticAlgorithms.Part2 Class Usage Examples

Public Properties

Property Type Description
BoardHeight int
BoardWidth int
XOffsetEast int
XOffsetWest int
YOffsetNorth int
YOffsetSouth int

Public Methods

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

Private Methods

Method Description
CountQueensAttacked ( IEnumerable attackablePoints, ICollection queenLocations ) : int

Method Details

CreatePoint() public static method

public static CreatePoint ( Point point, int xOffset, int yOffset ) : Point
point Point
xOffset int
yOffset int
return Point

GetAttackablePoints() public static method

public static GetAttackablePoints ( Point queenPosition ) : IEnumerable>
queenPosition Point
return IEnumerable>

GoEast() public static method

public static GoEast ( Point point ) : Point
point Point
return Point

GoNorth() public static method

public static GoNorth ( Point point ) : Point
point Point
return Point

GoNorthEast() public static method

public static GoNorthEast ( Point point ) : Point
point Point
return Point

GoNorthWest() public static method

public static GoNorthWest ( Point point ) : Point
point Point
return Point

GoSouth() public static method

public static GoSouth ( Point point ) : Point
point Point
return Point

GoSouthEast() public static method

public static GoSouthEast ( Point point ) : Point
point Point
return Point

GoSouthWest() public static method

public static GoSouthWest ( Point point ) : Point
point Point
return Point

GoWest() public static method

public static GoWest ( Point point ) : Point
point Point
return Point

IsOnTheBoard() public static method

public static IsOnTheBoard ( Point point ) : bool
point Point
return bool

Solve() public method

public Solve ( ) : string
return string

Property Details

BoardHeight public_oe static_oe property

public static int BoardHeight
return int

BoardWidth public_oe static_oe property

public static int BoardWidth
return int

XOffsetEast public_oe static_oe property

public static int XOffsetEast
return int

XOffsetWest public_oe static_oe property

public static int XOffsetWest
return int

YOffsetNorth public_oe static_oe property

public static int YOffsetNorth
return int

YOffsetSouth public_oe static_oe property

public static int YOffsetSouth
return int