C# Class OfficeTicTacToe.Server.Models.TicTacToeEngine

Show file Open project: DXFrance/OfficeTicTacToe Class Usage Examples

Public Methods

Method Description
GetResultState ( string pGame ) : TicTacToeResult
Initialise ( Game game ) : void
IsGameFullCompleted ( string pGame ) : bool
MakeBestMove ( bool isMachineTurn ) : bool
MakeMove ( int viOperator, bool isMachineTurn ) : bool
TicTacToeEngine ( ) : System

Private Methods

Method Description
ApplyMove ( int pOperator, string pGame, bool isMachineTurn ) : string
MinimaxValueForState ( string pGame, bool pMaxTurn, ArrayList pOperators ) : TicTacToeResult
MinimaxValueSuccesors ( ArrayList &pOperator, string pGame, bool pMaxTurn, ArrayList pOperators ) : TicTacToeResult

Method Details

GetResultState() public method

public GetResultState ( string pGame ) : TicTacToeResult
pGame string
return TicTacToeResult

Initialise() public method

public Initialise ( Game game ) : void
game Game
return void

IsGameFullCompleted() public method

public IsGameFullCompleted ( string pGame ) : bool
pGame string
return bool

MakeBestMove() public method

public MakeBestMove ( bool isMachineTurn ) : bool
isMachineTurn bool
return bool

MakeMove() public method

public MakeMove ( int viOperator, bool isMachineTurn ) : bool
viOperator int
isMachineTurn bool
return bool

TicTacToeEngine() public method

public TicTacToeEngine ( ) : System
return System