aima.games
Class TicTacToe
java.lang.Object
aima.games.Game
aima.games.TicTacToe
public class TicTacToe
- extends Game
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 |
TicTacToe
public TicTacToe()
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