C# Class AIMA.Core.Environment.NQueens.NQueensBoard

Afficher le fichier Open project: PaulMineau/AIMA.Net Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( Object o ) : bool
GetHashCode ( ) : int
NQueensBoard ( int n ) : System
ToString ( ) : String
addQueenAt ( XYLocation l ) : void
clear ( ) : void
getBoardPic ( ) : String
getNumberOfAttackingPairs ( ) : int
getNumberOfAttacksOn ( XYLocation l ) : int
getNumberOfQueensOnBoard ( ) : int
getQueenPositions ( ) : List
getSize ( ) : int
isSquareUnderAttack ( XYLocation l ) : bool
moveQueen ( XYLocation from, XYLocation to ) : void
moveQueenTo ( XYLocation l ) : void
print ( ) : void
queenExistsAt ( XYLocation l ) : bool
removeQueenFrom ( XYLocation l ) : void
setBoard ( List al ) : void

Private Methods

Méthode Description
isSquareDiagonallyAttacked ( int x, int y ) : bool
isSquareHorizontallyAttacked ( int x, int y ) : bool
isSquareVerticallyAttacked ( int x, int y ) : bool
numberOfDiagonalAttacksOn ( int x, int y ) : int
numberOfHorizontalAttacksOn ( int x, int y ) : int
numberOfVerticalAttacksOn ( int x, int y ) : int
queenExistsAt ( int x, int y ) : bool

Method Details

Equals() public méthode

public Equals ( Object o ) : bool
o Object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

NQueensBoard() public méthode

public NQueensBoard ( int n ) : System
n int
Résultat System

ToString() public méthode

public ToString ( ) : String
Résultat String

addQueenAt() public méthode

public addQueenAt ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
Résultat void

clear() public méthode

public clear ( ) : void
Résultat void

getBoardPic() public méthode

public getBoardPic ( ) : String
Résultat String

getNumberOfAttackingPairs() public méthode

public getNumberOfAttackingPairs ( ) : int
Résultat int

getNumberOfAttacksOn() public méthode

public getNumberOfAttacksOn ( XYLocation l ) : int
l AIMA.Core.Util.DataStructure.XYLocation
Résultat int

getNumberOfQueensOnBoard() public méthode

public getNumberOfQueensOnBoard ( ) : int
Résultat int

getQueenPositions() public méthode

public getQueenPositions ( ) : List
Résultat List

getSize() public méthode

public getSize ( ) : int
Résultat int

isSquareUnderAttack() public méthode

public isSquareUnderAttack ( XYLocation l ) : bool
l AIMA.Core.Util.DataStructure.XYLocation
Résultat bool

moveQueen() public méthode

public moveQueen ( XYLocation from, XYLocation to ) : void
from AIMA.Core.Util.DataStructure.XYLocation
to AIMA.Core.Util.DataStructure.XYLocation
Résultat void

moveQueenTo() public méthode

public moveQueenTo ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
Résultat void

print() public méthode

public print ( ) : void
Résultat void

queenExistsAt() public méthode

public queenExistsAt ( XYLocation l ) : bool
l AIMA.Core.Util.DataStructure.XYLocation
Résultat bool

removeQueenFrom() public méthode

public removeQueenFrom ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
Résultat void

setBoard() public méthode

public setBoard ( List al ) : void
al List
Résultat void