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

Show file Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method 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

Method 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 method

public Equals ( Object o ) : bool
o Object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

NQueensBoard() public method

public NQueensBoard ( int n ) : System
n int
return System

ToString() public method

public ToString ( ) : String
return String

addQueenAt() public method

public addQueenAt ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
return void

clear() public method

public clear ( ) : void
return void

getBoardPic() public method

public getBoardPic ( ) : String
return String

getNumberOfAttackingPairs() public method

public getNumberOfAttackingPairs ( ) : int
return int

getNumberOfAttacksOn() public method

public getNumberOfAttacksOn ( XYLocation l ) : int
l AIMA.Core.Util.DataStructure.XYLocation
return int

getNumberOfQueensOnBoard() public method

public getNumberOfQueensOnBoard ( ) : int
return int

getQueenPositions() public method

public getQueenPositions ( ) : List
return List

getSize() public method

public getSize ( ) : int
return int

isSquareUnderAttack() public method

public isSquareUnderAttack ( XYLocation l ) : bool
l AIMA.Core.Util.DataStructure.XYLocation
return bool

moveQueen() public method

public moveQueen ( XYLocation from, XYLocation to ) : void
from AIMA.Core.Util.DataStructure.XYLocation
to AIMA.Core.Util.DataStructure.XYLocation
return void

moveQueenTo() public method

public moveQueenTo ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
return void

print() public method

public print ( ) : void
return void

queenExistsAt() public method

public queenExistsAt ( XYLocation l ) : bool
l AIMA.Core.Util.DataStructure.XYLocation
return bool

removeQueenFrom() public method

public removeQueenFrom ( XYLocation l ) : void
l AIMA.Core.Util.DataStructure.XYLocation
return void

setBoard() public method

public setBoard ( List al ) : void
al List
return void