C# Class AIMA.Core.Environment.TicTacToe.TicTacToeBoard

Mostrar archivo Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method Description
Equals ( Object anObj ) : bool
ToString ( ) : String
clone ( ) : Object
cloneBoard ( ) : TicTacToeBoard
getNumberOfMarkedPositions ( ) : int
getState ( ) : String[]
getUnMarkedPositions ( ) : List
getValue ( int row, int col ) : String
isAnyColumnComplete ( ) : bool
isAnyDiagonalComplete ( ) : bool
isAnyRowComplete ( ) : bool
isEmpty ( int row, int col ) : bool
isMarked ( String s, int i, int j ) : bool
lineThroughBoard ( ) : bool
markO ( int row, int col ) : void
markX ( int row, int col ) : void
print ( ) : void
setState ( String state ) : void

Private Methods

Method Description
getAbsPosition ( int row, int col ) : int
mark ( int row, int col, String symbol ) : void
setValue ( int row, int col, String val ) : void

Method Details

Equals() public method

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

ToString() public method

public ToString ( ) : String
return String

clone() public method

public clone ( ) : Object
return Object

cloneBoard() public method

public cloneBoard ( ) : TicTacToeBoard
return TicTacToeBoard

getNumberOfMarkedPositions() public method

public getNumberOfMarkedPositions ( ) : int
return int

getState() public method

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

getUnMarkedPositions() public method

public getUnMarkedPositions ( ) : List
return List

getValue() public method

public getValue ( int row, int col ) : String
row int
col int
return String

isAnyColumnComplete() public method

public isAnyColumnComplete ( ) : bool
return bool

isAnyDiagonalComplete() public method

public isAnyDiagonalComplete ( ) : bool
return bool

isAnyRowComplete() public method

public isAnyRowComplete ( ) : bool
return bool

isEmpty() public method

public isEmpty ( int row, int col ) : bool
row int
col int
return bool

isMarked() public method

public isMarked ( String s, int i, int j ) : bool
s String
i int
j int
return bool

lineThroughBoard() public method

public lineThroughBoard ( ) : bool
return bool

markO() public method

public markO ( int row, int col ) : void
row int
col int
return void

markX() public method

public markX ( int row, int col ) : void
row int
col int
return void

print() public method

public print ( ) : void
return void

setState() public method

public setState ( String state ) : void
state String
return void