aima.games
Class TicTacToe

java.lang.Object
  extended by aima.games.Game
      extended by aima.games.TicTacToe

public class TicTacToe
extends Game


Field Summary
 
Fields inherited from class aima.games.Game
initialState, level, presentState
 
Constructor Summary
TicTacToe()
           
 
Method Summary
 int computeUtility(GameState state)
           
 int getAlphaBetaValue(GameState state)
           
 TicTacToeBoard getBoard(GameState state)
           
 int getMiniMaxValue(GameState state)
           
 GameState getMove(GameState state, int x, int y)
           
 java.util.ArrayList getSuccessorStates(GameState state)
           
 GameState makeMove(GameState state, int x, int y)
           
 GameState makeMove(GameState state, java.lang.Object o)
           
 GameState makeMove(int x, int y)
           
 void printPossibleMoves()
           
 boolean terminalTest(GameState state)
           
 
Methods inherited from class aima.games.Game
getLevel, getMoves, getPlayerToMove, getState, getUtility, hasEnded, makeAlphaBetaMove, makeMiniMaxMove, maxValue, maxValue, minValue, minValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicTacToe

public TicTacToe()
Method Detail

getBoard

public TicTacToeBoard getBoard(GameState state)

getSuccessorStates

public java.util.ArrayList getSuccessorStates(GameState state)
Specified by:
getSuccessorStates in class Game

makeMove

public GameState makeMove(GameState state,
                          java.lang.Object o)
Specified by:
makeMove in class Game

makeMove

public GameState makeMove(GameState state,
                          int x,
                          int y)

makeMove

public GameState makeMove(int x,
                          int y)

getMove

public GameState getMove(GameState state,
                         int x,
                         int y)

computeUtility

public int computeUtility(GameState state)
Specified by:
computeUtility in class Game

terminalTest

public boolean terminalTest(GameState state)
Specified by:
terminalTest in class Game

printPossibleMoves

public void printPossibleMoves()

getMiniMaxValue

public int getMiniMaxValue(GameState state)
Specified by:
getMiniMaxValue in class Game

getAlphaBetaValue

public int getAlphaBetaValue(GameState state)
Specified by:
getAlphaBetaValue in class Game