B C E F G H I M N O P R S T X

B

Board - class edu.lhup.ai.tictactoe.Board.
A concrete board implementation that implements the rules of tic-tac-toe.
Board() - Constructor for class edu.lhup.ai.tictactoe.Board
Creates an empty Board object w/o players
Board(Board) - Constructor for class edu.lhup.ai.tictactoe.Board
Creates a new Board object based on an existing Board object.
Board(IMove[], IPlayer[]) - Constructor for class edu.lhup.ai.tictactoe.Board
Creates a new Board object from an array of moves.
Board(IPlayer[]) - Constructor for class edu.lhup.ai.tictactoe.Board
Creates an empty Board object.
BoardTest - class edu.lhup.ai.tictactoe.BoardTest.
A series of tests used by JUnit to make sure that the rules of the tic-tac-toe game are implemented correctely.
BoardTest() - Constructor for class edu.lhup.ai.tictactoe.BoardTest
 

C

ConsolePlayer - class edu.lhup.ai.ConsolePlayer.
This can be considered a "human" player because it accepts moves from the command line.
ConsolePlayer() - Constructor for class edu.lhup.ai.ConsolePlayer
 
createStringBuffer() - Static method in class edu.lhup.ai.tictactoe.Board
 
cutoff(IBoard, int) - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 

E

edu.lhup.ai - package edu.lhup.ai
 
edu.lhup.ai.tictactoe - package edu.lhup.ai.tictactoe
 
EmptyPiece - class edu.lhup.ai.tictactoe.EmptyPiece.
Represents a location on the tic-tac-toe board that contains no piece at all.
emptyPiece() - Static method in class edu.lhup.ai.tictactoe.Board
 
EmptyPiece() - Constructor for class edu.lhup.ai.tictactoe.EmptyPiece
 
equals(Object) - Method in class edu.lhup.ai.tictactoe.Board
 
evaluate(IBoard, IPlayer) - Method in class edu.lhup.ai.Evaluator
Provides a mechanism for evaluating the current state of a game.
evaluate(IBoard, IPlayer) - Method in interface edu.lhup.ai.IEvaluator
Provides a mechanism for evaluating the current state of a game.
evaluate(IBoard, IPlayer) - Method in class edu.lhup.ai.tictactoe.Evaluator
Provides a mechanism for evaluating the current state of a game.
Evaluator - class edu.lhup.ai.Evaluator.
A default evaluator that is capable of evaluating any game.
Evaluator - class edu.lhup.ai.tictactoe.Evaluator.
An evaluator that is capable of evaluating a tic-tac-toe game.
Evaluator() - Constructor for class edu.lhup.ai.Evaluator
 
Evaluator() - Constructor for class edu.lhup.ai.tictactoe.Evaluator
 

F

Factory - class edu.lhup.ai.Factory.
A concrete factory that is responsible for creating a game based on the settings and class names specified in an XML file.
Factory() - Constructor for class edu.lhup.ai.Factory
 

G

getBoard() - Method in interface edu.lhup.ai.IBoard
 
getBoard() - Method in class edu.lhup.ai.tictactoe.Board
 
getBoardInstance(String) - Method in interface edu.lhup.ai.IFactory
 
getBoardInstance(String) - Method in class edu.lhup.ai.Factory
 
getCol() - Method in class edu.lhup.ai.tictactoe.Move
 
getDescription() - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
getDescription() - Method in class edu.lhup.ai.RandomPlayer
 
getDescription() - Method in class edu.lhup.ai.ConsolePlayer
 
getDescription() - Method in interface edu.lhup.ai.IPlayer
 
getDescription() - Method in interface edu.lhup.ai.IBoard
 
getDescription() - Method in class edu.lhup.ai.tictactoe.Board
 
getMove(IPiece, int, int) - Static method in class edu.lhup.ai.tictactoe.Board
 
getPiece() - Method in interface edu.lhup.ai.IMove
 
getPiece() - Method in class edu.lhup.ai.tictactoe.Move
 
getPlayers() - Method in interface edu.lhup.ai.IBoard
 
getPlayers() - Method in class edu.lhup.ai.tictactoe.Board
 
getRating(IBoard, int, int, int) - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
getRow() - Method in class edu.lhup.ai.tictactoe.Move
 
getShortDescription() - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
getShortDescription() - Method in class edu.lhup.ai.RandomPlayer
 
getShortDescription() - Method in class edu.lhup.ai.ConsolePlayer
 
getShortDescription() - Method in interface edu.lhup.ai.IPlayer
 
getShortDescription() - Method in interface edu.lhup.ai.IBoard
 
getShortDescription() - Method in class edu.lhup.ai.tictactoe.Board
 
getState() - Method in interface edu.lhup.ai.IBoard
 
getState() - Method in class edu.lhup.ai.tictactoe.Board
 
getWinner() - Method in interface edu.lhup.ai.IBoard
 
getWinner() - Method in class edu.lhup.ai.tictactoe.Board
 

H

hashCode() - Method in class edu.lhup.ai.tictactoe.Board
 
hasNext() - Method in class edu.lhup.ai.tictactoe.PlayerIterator
 
hasNext() - Method in class edu.lhup.ai.tictactoe.MoveIterator
 

I

IBoard - interface edu.lhup.ai.IBoard.
The abstract representation of a game.
IEvaluator - interface edu.lhup.ai.IEvaluator.
An abstract representation of an evaluator that encapsulates the strategy used by a player to evaluate the state of a game.
IFactory - interface edu.lhup.ai.IFactory.
The abstract representation of a factory that is capable of creating a game.
IMove - interface edu.lhup.ai.IMove.
The abstract representation of a player's move in a game.
IPiece - interface edu.lhup.ai.IPiece.
The abstract representation of a piece used to play a game.
IPlayer - interface edu.lhup.ai.IPlayer.
The abstract representation of a player.

M

m_cutoff - Variable in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
m_evaluator - Variable in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
main(String[]) - Static method in class edu.lhup.ai.PlayGame
The main method that launches a game.
MinMaxAlphaBetaPlayer - class edu.lhup.ai.MinMaxAlphaBetaPlayer.
A concrete player that plays any game using the minimax algorithm with alpha-beta pruning and a cutoff.
MinMaxAlphaBetaPlayer() - Constructor for class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
Move - class edu.lhup.ai.tictactoe.Move.
A concrete implementation of a move in a tic-tac-toe game.
Move(IPiece, int, int) - Constructor for class edu.lhup.ai.tictactoe.Move
 
MoveIterator - class edu.lhup.ai.tictactoe.MoveIterator.
Iterates all of the currently legal moves in a tic-tac-toe game
moveIterator() - Method in interface edu.lhup.ai.IBoard
 
moveIterator() - Method in class edu.lhup.ai.tictactoe.Board
 
MoveIterator(Board) - Constructor for class edu.lhup.ai.tictactoe.MoveIterator
 
moves(Collection) - Method in interface edu.lhup.ai.IBoard
Populates the specified Collection with the set of all currently legal moves.
moves(Collection) - Method in class edu.lhup.ai.tictactoe.Board
 

N

next() - Method in class edu.lhup.ai.tictactoe.PlayerIterator
 
next() - Method in class edu.lhup.ai.tictactoe.MoveIterator
 

O

OPiece - class edu.lhup.ai.tictactoe.OPiece.
Represents a location on the tic-tac-toe board that contains an O.
oPiece() - Static method in class edu.lhup.ai.tictactoe.Board
 
OPiece() - Constructor for class edu.lhup.ai.tictactoe.OPiece
 
OTURN - Static variable in class edu.lhup.ai.tictactoe.Board
 
OWINS - Static variable in class edu.lhup.ai.tictactoe.Board
 

P

peekMove() - Method in interface edu.lhup.ai.IBoard
 
peekMove() - Method in class edu.lhup.ai.tictactoe.Board
 
PlayerIterator - class edu.lhup.ai.tictactoe.PlayerIterator.
Iterates the two player's currenly playing a game of tic-tac-toe.
playerIterator() - Method in interface edu.lhup.ai.IBoard
 
playerIterator() - Method in class edu.lhup.ai.tictactoe.Board
 
PlayerIterator(Board) - Constructor for class edu.lhup.ai.tictactoe.PlayerIterator
 
PlayGame - class edu.lhup.ai.PlayGame.
Run this class in order to play a game! You will need a configuration file that contains the information specifying the game you want to play, and the player's that you want to play.
PlayGame() - Constructor for class edu.lhup.ai.PlayGame
 
popMove() - Method in interface edu.lhup.ai.IBoard
Removes the last move from this board's stack.
popMove() - Method in class edu.lhup.ai.tictactoe.Board
 
pushMove(IMove) - Method in interface edu.lhup.ai.IBoard
Adds the specified move to this board's stack.
pushMove(IMove) - Method in class edu.lhup.ai.tictactoe.Board
Adds the specified move to this board's stack.
pushMove(String) - Method in interface edu.lhup.ai.IBoard
Translates the specified String into a move and then adds that move onto this board's stack.
pushMove(String) - Method in class edu.lhup.ai.tictactoe.Board
Adds the specified move to this board's stack.

R

RandomPlayer - class edu.lhup.ai.RandomPlayer.
A concrete player that plays any game by selecting a random move from the set of currently legal moves.
RandomPlayer() - Constructor for class edu.lhup.ai.RandomPlayer
 
remove() - Method in class edu.lhup.ai.tictactoe.PlayerIterator
 
remove() - Method in class edu.lhup.ai.tictactoe.MoveIterator
 
resetState() - Method in interface edu.lhup.ai.IBoard
Returns this board to its initial state so it will be ready for a new game.
resetState() - Method in class edu.lhup.ai.tictactoe.Board
 

S

setCutoff(int) - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
setCutoff(int) - Method in class edu.lhup.ai.RandomPlayer
 
setCutoff(int) - Method in class edu.lhup.ai.ConsolePlayer
 
setCutoff(int) - Method in interface edu.lhup.ai.IPlayer
Provides a mechanism for specifying the point at which a player's abandons the search for the best move.
setEvaluator(IEvaluator) - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
setEvaluator(IEvaluator) - Method in class edu.lhup.ai.RandomPlayer
 
setEvaluator(IEvaluator) - Method in class edu.lhup.ai.ConsolePlayer
 
setEvaluator(IEvaluator) - Method in interface edu.lhup.ai.IPlayer
Provides a mechanism for specifying a player's evaluation strategy.
setPlayers(IPlayer[]) - Method in interface edu.lhup.ai.IBoard
Specifies the players that will be playing this game.
setPlayers(IPlayer[]) - Method in class edu.lhup.ai.tictactoe.Board
 
setUp() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
StateException - exception edu.lhup.ai.StateException.
A custom exception object that will be thrown anytime an attempt is made to place a board into an invalid state.
StateException(String) - Constructor for class edu.lhup.ai.StateException
 
StateException(String, Throwable) - Constructor for class edu.lhup.ai.StateException
 

T

takeTurn(IBoard) - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
This player makes moves using the minimax algorithm with alpha-beta pruning and a cutoff.
takeTurn(IBoard) - Method in class edu.lhup.ai.RandomPlayer
Selects a random move from the set of currently legal moves.
takeTurn(IBoard) - Method in class edu.lhup.ai.ConsolePlayer
Prompts the user for the next move via the command line.
takeTurn(IBoard) - Method in interface edu.lhup.ai.IPlayer
Asks this player to push a move onto the specified game's stack.
testEquals() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testEvaluator() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testFirstMove() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testHashCode() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testIterator() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testMoveSequenceWins() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testPlayerIterator() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
testSpecial() - Method in class edu.lhup.ai.tictactoe.BoardTest
 
TIE - Static variable in class edu.lhup.ai.tictactoe.Board
 
toString() - Method in class edu.lhup.ai.MinMaxAlphaBetaPlayer
 
toString() - Method in class edu.lhup.ai.RandomPlayer
 
toString() - Method in class edu.lhup.ai.ConsolePlayer
 
toString() - Method in class edu.lhup.ai.Evaluator
 
toString() - Method in class edu.lhup.ai.tictactoe.XPiece
 
toString() - Method in class edu.lhup.ai.tictactoe.OPiece
 
toString() - Method in class edu.lhup.ai.tictactoe.Evaluator
 
toString() - Method in class edu.lhup.ai.tictactoe.EmptyPiece
 
toString() - Method in class edu.lhup.ai.tictactoe.Move
 
toString() - Method in class edu.lhup.ai.tictactoe.Board
 
TurnException - exception edu.lhup.ai.TurnException.
A custom exception object that will be thrown anytime an attempt is made by a player to take an illegal turn.
TurnException(String) - Constructor for class edu.lhup.ai.TurnException
 
TurnException(String, Throwable) - Constructor for class edu.lhup.ai.TurnException
 

X

XPiece - class edu.lhup.ai.tictactoe.XPiece.
Represents a location on the tic-tac-toe board that contains an X.
xPiece() - Static method in class edu.lhup.ai.tictactoe.Board
 
XPiece() - Constructor for class edu.lhup.ai.tictactoe.XPiece
 
XTURN - Static variable in class edu.lhup.ai.tictactoe.Board
 
XWINS - Static variable in class edu.lhup.ai.tictactoe.Board
 

B C E F G H I M N O P R S T X