C# Class OfficeTicTacToe.Server.Models.TicTacToeEngine

Afficher le fichier Open project: DXFrance/OfficeTicTacToe Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetResultState ( string pGame ) : TicTacToeResult
pGame string
Résultat TicTacToeResult

Initialise() public méthode

public Initialise ( Game game ) : void
game Game
Résultat void

IsGameFullCompleted() public méthode

public IsGameFullCompleted ( string pGame ) : bool
pGame string
Résultat bool

MakeBestMove() public méthode

public MakeBestMove ( bool isMachineTurn ) : bool
isMachineTurn bool
Résultat bool

MakeMove() public méthode

public MakeMove ( int viOperator, bool isMachineTurn ) : bool
viOperator int
isMachineTurn bool
Résultat bool

TicTacToeEngine() public méthode

public TicTacToeEngine ( ) : System
Résultat System