C# Class GeneticAlgorithms.EightQueensSolver

Afficher le fichier Open project: handcraftsman/GeneticAlgorithms.Part2 Class Usage Examples

Méthodes publiques

Свойство Type Description
BoardHeight int
BoardWidth int
XOffsetEast int
XOffsetWest int
YOffsetNorth int
YOffsetSouth int

Méthodes publiques

Méthode 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

Méthode Description
CountQueensAttacked ( IEnumerable attackablePoints, ICollection queenLocations ) : int

Method Details

CreatePoint() public static méthode

public static CreatePoint ( Point point, int xOffset, int yOffset ) : Point
point Point
xOffset int
yOffset int
Résultat Point

GetAttackablePoints() public static méthode

public static GetAttackablePoints ( Point queenPosition ) : IEnumerable>
queenPosition Point
Résultat IEnumerable>

GoEast() public static méthode

public static GoEast ( Point point ) : Point
point Point
Résultat Point

GoNorth() public static méthode

public static GoNorth ( Point point ) : Point
point Point
Résultat Point

GoNorthEast() public static méthode

public static GoNorthEast ( Point point ) : Point
point Point
Résultat Point

GoNorthWest() public static méthode

public static GoNorthWest ( Point point ) : Point
point Point
Résultat Point

GoSouth() public static méthode

public static GoSouth ( Point point ) : Point
point Point
Résultat Point

GoSouthEast() public static méthode

public static GoSouthEast ( Point point ) : Point
point Point
Résultat Point

GoSouthWest() public static méthode

public static GoSouthWest ( Point point ) : Point
point Point
Résultat Point

GoWest() public static méthode

public static GoWest ( Point point ) : Point
point Point
Résultat Point

IsOnTheBoard() public static méthode

public static IsOnTheBoard ( Point point ) : bool
point Point
Résultat bool

Solve() public méthode

public Solve ( ) : string
Résultat string

Property Details

BoardHeight public_oe static_oe property

public static int BoardHeight
Résultat int

BoardWidth public_oe static_oe property

public static int BoardWidth
Résultat int

XOffsetEast public_oe static_oe property

public static int XOffsetEast
Résultat int

XOffsetWest public_oe static_oe property

public static int XOffsetWest
Résultat int

YOffsetNorth public_oe static_oe property

public static int YOffsetNorth
Résultat int

YOffsetSouth public_oe static_oe property

public static int YOffsetSouth
Résultat int