C# Class AIMA.Core.Environment.EightPuzzle.EightPuzzleBoard

Datei anzeigen Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Properties

Property Type Description
DOWN System.Action
LEFT System.Action
RIGHT System.Action
UP System.Action

Public Methods

Method Description
EightPuzzleBoard ( ) : System
EightPuzzleBoard ( EightPuzzleBoard copyBoard ) : System
EightPuzzleBoard ( int state ) : System
Equals ( Object o ) : bool
HashCode ( ) : int
ToString ( ) : String
canMoveGap ( System.Action where ) : bool
getLocationOf ( int val ) : XYLocation
getPositions ( ) : List
getState ( ) : int[]
getValueAt ( XYLocation loc ) : int
moveGapDown ( ) : void
moveGapLeft ( ) : void
moveGapRight ( ) : void
moveGapUp ( ) : void
setBoard ( List locs ) : void

Private Methods

Method Description
getAbsPosition ( int x, int y ) : int
getGapPosition ( ) : int
getPositionOf ( int val ) : int
getValueAt ( int x, int y ) : int
getXCoord ( int absPos ) : int
getYCoord ( int absPos ) : int
setValue ( int x, int y, int val ) : void

Method Details

EightPuzzleBoard() public method

public EightPuzzleBoard ( ) : System
return System

EightPuzzleBoard() public method

public EightPuzzleBoard ( EightPuzzleBoard copyBoard ) : System
copyBoard EightPuzzleBoard
return System

EightPuzzleBoard() public method

public EightPuzzleBoard ( int state ) : System
state int
return System

Equals() public method

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

HashCode() public method

public HashCode ( ) : int
return int

ToString() public method

public ToString ( ) : String
return String

canMoveGap() public method

public canMoveGap ( System.Action where ) : bool
where System.Action
return bool

getLocationOf() public method

public getLocationOf ( int val ) : XYLocation
val int
return XYLocation

getPositions() public method

public getPositions ( ) : List
return List

getState() public method

public getState ( ) : int[]
return int[]

getValueAt() public method

public getValueAt ( XYLocation loc ) : int
loc XYLocation
return int

moveGapDown() public method

public moveGapDown ( ) : void
return void

moveGapLeft() public method

public moveGapLeft ( ) : void
return void

moveGapRight() public method

public moveGapRight ( ) : void
return void

moveGapUp() public method

public moveGapUp ( ) : void
return void

setBoard() public method

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

Property Details

DOWN public_oe static_oe property

public static Action,System DOWN
return System.Action

LEFT public_oe static_oe property

public static Action,System LEFT
return System.Action

RIGHT public_oe static_oe property

public static Action,System RIGHT
return System.Action

UP public_oe static_oe property

public static Action,System UP
return System.Action