#include <TicTacToeAI.h>
Inheritance diagram for CTicTacToeAI:

Public Member Functions | |
| CTicTacToeAI () | |
| CTicTacToeAI. | |
| ~CTicTacToeAI () | |
| ~CTicTacToeAI | |
Protected Member Functions | |
| void | NewGame () |
| NewGame. | |
| void | Play (const CPiece *p) |
| Play. | |
| void | PlayMove (const CMove *m) |
| PlayMove. | |
| bool | CheckMove (const CMove *m) |
| CheckMove. | |
| void | SetPlayerPiece (const CPiece *p) |
| SetPlayerPiece. | |
| void | InvalidMoveProcessing (const CMove *p) |
| InvalidMoveProcessing. | |
| void | SetPlayerDescription () |
| SetPlayerDescription. | |
| list< CTicTacToeMove > | GenerateMoves () |
| GenerateMoves. | |
Description: Class represents an AI for TicTacToe
Limitations: NONE
|
|
CTicTacToeAI. Description: Class constructor Limitations: NONE |
|
|
~CTicTacToeAI Description: Class deconstructor Limitations: NONE |
|
|
CheckMove. Description: Checks a move for validity. Returns true if the move is valid and false otherwise.
Implements CAIModule. |
|
|
GenerateMoves. Description: Generates legal moves.
|
|
|
InvalidMoveProcessing. Description: Called when an invalid move message is sent
Implements CAIModule. |
|
|
NewGame. Description: Resets the board to starting state.
Implements CAIModule. |
|
|
Play. Description: Finds a move to play. Just a random move selection.
Implements CAIModule. |
|
|
PlayMove. Description: Plays a move.
Implements CAIModule. |
|
|
SetPlayerDescription. Description: Sets the description of this AI Module.
Reimplemented from CAIModule. |
|
|
SetPlayerPiece. Description: Sets the piece of this player.
Implements CAIModule. |