A B C D E F G H I J K L M N O P Q R S T U V W

A

actionPerformed(ActionEvent) - Method in class antichess.viewgui.ChessGUI
Handles these events for the ChessGUI: Exiting Saving Loading Starting a new game Pausing Ending the game Setting Possible Moves Visible Disco Mode For a better description of these see the specifications for the class.
actionPerformed(ActionEvent) - Method in class antichess.viewgui.LoadGameWindow
Handles the button clicking events
actionPerformed(ActionEvent) - Method in class antichess.viewgui.NewGameWindow
 
actionPerformed(ActionEvent) - Method in class viewguitest.BoardViewTest
Handles events for the TimerLabelTest
actionPerformed(ActionEvent) - Method in class viewguitest.ImageMapTest
Handles events for the TimerLabelTest
actionPerformed(ActionEvent) - Method in class viewguitest.TimerLabelTest
Handles events for the TimerLabelTest
addListener(GameTimerListener, Player) - Method in class antichess.GameClock
 
addMove(M) - Method in class antichess.MoveHistory
Adds a move to the MoveHistory.
addMove(M, String) - Method in class antichess.MoveHistory
 
addObserver(BoardObserver) - Method in class antichess.Board
Adds an observer to the list of BoardObservers
addObserver(GameControllerObserver) - Method in class antichess.GameController
 
addTimerListener(GameTimerListener) - Method in class antichess.GameTimer
 
AIJob<M extends Move,B extends Board<M>> - Class in antichess.ai
An AIJob is a game tree node to be evaluated by a MinimaxAI.AIThread
AIJob() - Constructor for class antichess.ai.AIJob
 
AIMove<M extends Move> - Class in antichess.ai
An AIMove represents a line of moves found by the AI while searching the game tree from a given node.
AIMove(M, int) - Constructor for class antichess.ai.AIMove
 
AIPlayer<M extends Move,B extends Board<M>> - Class in antichess
A AIPlayer is a GamePlayer that uses a GameAI to make moves.
AIPlayer(B, Player, GameAI<M, B>) - Constructor for class antichess.AIPlayer
Creates a new AIPlayer object
AiPlayerFactory - Class in antichess.net
AiPlayerFactory is an implementation of the antichess.net AiPlayerFactory interface.
AiPlayerFactory() - Constructor for class antichess.net.AiPlayerFactory
 
AITests - Class in antichess.test
Some sanity tests for the AI -- it makes legal moves
AITests() - Constructor for class antichess.test.AITests
 
AITests(String) - Constructor for class antichess.test.AITests
 
allLegalMoves() - Method in class antichess.AntichessBoard
 
allLegalMoves() - Method in class antichess.Board
 
allLegalMoves() - Method in class antichess.ChessBoard
 
AllTests - Class in antichess.test
AllTests is a jUnit test suite containing all the automated antichess tests
AllTests() - Constructor for class antichess.test.AllTests
 
AllTests(String) - Constructor for class antichess.test.AllTests
 
antichess - package antichess
 
antichess.ai - package antichess.ai
 
antichess.movegen - package antichess.movegen
 
antichess.net - package antichess.net
 
antichess.test - package antichess.test
 
antichess.viewgui - package antichess.viewgui
 
AntichessAI - Class in antichess.ai
AntichessAI implements an Antichess AI
AntichessAI() - Constructor for class antichess.ai.AntichessAI
 
AntichessBoard - Class in antichess
Extension of a ChessBoard with board-level moves modified for Antichess.
AntichessBoard() - Constructor for class antichess.AntichessBoard
Creates a new AntichessBoard and initializes it appropriately.
AntichessBoardEvaluator - Class in antichess.ai
AntichessBoardEvaluator evaluates AntichessBoards
AntichessBoardEvaluator() - Constructor for class antichess.ai.AntichessBoardEvaluator
Creates a new AntichessBoardEvaluator.
AntichessBoardEvaluatorTest - Class in antichess.test
Tests to verify that the AntichessBoardEvaluator returns the expected values for various AntichessBoards.
AntichessBoardEvaluatorTest(String) - Constructor for class antichess.test.AntichessBoardEvaluatorTest
 
AntichessBoardTests - Class in antichess.test
Tests for the functionality of AntichessBoardTests.
AntichessBoardTests(String) - Constructor for class antichess.test.AntichessBoardTests
 
automaticallyTimed() - Method in class antichess.AIPlayer
 
automaticallyTimed() - Method in class antichess.ChessPlayer
 
automaticallyTimed() - Method in interface antichess.GamePlayer
If a GamePlayer is automatically timed the time is handled by the GameController if it is not automatically timed, the time for a move needs to be handled by the GamePlayer
automaticallyTimed() - Method in class antichess.RandomAI
 
automaticallyTimed() - Method in class antichess.TextAIPlayer
Tells the controller that the TextAIPlayer handles it's own time
automaticallyTimed() - Method in class antichess.TextPlayer
 

B

bestMove - Variable in class antichess.ai.AIJob
The best move found so far for the parent of the board in the game tree.
beta - Variable in class antichess.ai.AIJob
The value of beta for alpha-beta pruning the search
board - Variable in class antichess.ai.AIJob
The board to be evaluated
Board<M extends Move> - Class in antichess
A Board represents an arbitrary 2-dimensional game board that is somehow populated by pieces that are allowed to move in specific waves.
Board() - Constructor for class antichess.Board
Initializes some variables for the Board assuming it is being created for a new game, including observers.
BoardEvaluator<B extends Board<? extends Move>> - Interface in antichess.ai
A BoardEvaluator contains code to generate a static evaluation of a Board
BoardObserver - Interface in antichess
 
boardValue(AntichessBoard) - Method in class antichess.ai.AntichessBoardEvaluator
 
boardValue(B) - Method in interface antichess.ai.BoardEvaluator
 
BoardView - Interface in antichess.viewgui
BoardView is a container for rendering Boards and accept input.
BoardViewTest - Class in viewguitest
BoardViewTest creates a game a chess with the starting locations and attempts to render it.
BoardViewTest() - Constructor for class viewguitest.BoardViewTest
 

C

CastlingMoveGenerator - Class in antichess.movegen
CastlingMoveGenerator is a MoveGenerator that generates castling moves for the king
CastlingMoveGenerator() - Constructor for class antichess.movegen.CastlingMoveGenerator
 
checkForEndCondition() - Method in class antichess.AntichessBoard
 
checkForEndCondition() - Method in class antichess.ChessBoard
 
checkIsOver() - Method in class antichess.TextUI
Checks to see if the board has met end conditions if end conditions have been met it prints " has won" to stdout It only prints this message once
CHECKMATE - Static variable in class antichess.ChessBoard
End-game condition variable to represent checkmate.
checkRep() - Method in class antichess.ChessBoard
Private method to check that the representation invariant for ChessBoards holds.
ChessBoard - Class in antichess
A ChessBoard represents the state of a Chess Game at some time.
ChessBoard() - Constructor for class antichess.ChessBoard
Creates a new ChessBoard object, with an unfilled board, an unfilled capturedPieces pile, and an empty moveStack.
ChessBoardTests - Class in antichess.test
Tests for the functionality of ChessBoards and their methods.
ChessBoardTests(String) - Constructor for class antichess.test.ChessBoardTests
 
ChessBoardTimeProfile - Class in antichess.test
 
ChessBoardView - Class in antichess.viewgui
ChessBoardView is the graphic representation of a Board for use in the view.
ChessBoardView(ChessBoard, ImageMap, int, int, int, int) - Constructor for class antichess.viewgui.ChessBoardView
Constructor that creates a new ChessBoardView
ChessGUI - Class in antichess.viewgui
ChessGUI is a GUI for displaying a game of Chess, Antichess, or any other chess game that uses a ChessBoard.
ChessMove - Class in antichess
A ChessMove represents a move in a Chess game.
ChessMove(Piece, int, int, Piece) - Constructor for class antichess.ChessMove
 
ChessMove(Piece, int, int) - Constructor for class antichess.ChessMove
Helper constructor that assumes the capturedPiece is null
ChessMoveGenerator - Class in antichess.movegen
ChessMoveGenerator is an abstract implementation of MoveGenerator for generating ChessMoves.
ChessMoveGenerator() - Constructor for class antichess.movegen.ChessMoveGenerator
 
ChessMoveTests - Class in antichess.test
Automated tests for ChessMoves.
ChessMoveTests(String) - Constructor for class antichess.test.ChessMoveTests
 
ChessPlayer - Class in antichess
This class handles the interactions between the Controller and the View ChessPlayer is an implementation of the HumanPlayer interface.
ChessPlayer(ChessBoard, BoardView, Player) - Constructor for class antichess.ChessPlayer
Creates a new ChessPlayer
clone() - Method in class antichess.AntichessBoard
 
clone() - Method in class antichess.Board
Creates a clone of this Board
clone() - Method in class antichess.ChessBoard
 
ControllerMaster - Class in antichess
The ControllerMaster is the highest level of the controller.
ControllerState - Class in antichess
The ControllerState class handles communication between the ControllerMaster and the GameController class.
ControllerState() - Constructor for class antichess.ControllerState
 
ControllerStateTests - Class in antichess.test
 
ControllerStateTests() - Constructor for class antichess.test.ControllerStateTests
 
copyThis(AntichessBoard) - Method in class antichess.AntichessBoard
Inheritable helper method for copying various data members from this Board to an empty Board.
copyThis(Board<M>) - Method in class antichess.Board
Inheritable helper method for copying various data members from this Board to an empty Board.
copyThis(ChessBoard) - Method in class antichess.ChessBoard
Inheritable helper method for copying various data members from this Board to an empty Board.
createAndShowGUI() - Static method in class viewguitest.BoardViewTest
Create the GUI and shows it.
createAndShowGUI() - Static method in class viewguitest.ImageMapTest
Create the GUI and shows it.
createAndShowGUI() - Static method in class viewguitest.TimerLabelTest
Create the GUI and shows it.
createControllerMaster() - Static method in class antichess.ControllerMaster
 
createGUI(ChessBoard, GameClock, ControllerMaster) - Static method in class antichess.viewgui.ChessGUI
Creates a ChessGUI suitable for Chess or Antichess playing on.
createLoadGameWindow(File, ControllerMaster, JFrame) - Static method in class antichess.viewgui.LoadGameWindow
Creates and displays a LoadGame
createMove(Piece, int, int) - Method in class antichess.ChessBoard
 
createNewGameWindow(ControllerMaster) - Static method in class antichess.viewgui.NewGameWindow
Creates and displays a NewGameWindow with a master specified by master.
createPlayer(boolean, Properties, ChatProxy, ChatHistoryViewer, byte[], int) - Method in class antichess.net.AiPlayerFactory
 
createPlayer(ChessBoard, Player) - Static method in class antichess.RandomAI
 
createTextUI(boolean) - Method in class antichess.ControllerMaster
This function initializes a TextUI and starts the TextUI on its input loop.

D

destroy() - Method in class antichess.viewgui.ChessGUI
Closes the GUI
doMove(ChessMove, String) - Method in class antichess.AntichessBoard
 
doMove(M) - Method in class antichess.Board
 
doMove(M, String) - Method in class antichess.Board
 
doMove(ChessMove, String) - Method in class antichess.ChessBoard
 
doMove(String, long) - Method in class antichess.TextAIPlayer
 
doMove(String, long) - Method in interface antichess.TextGamePlayer
Asks the TextGamePlayer to do a move described by moveString that takes time milliseconds.
doMove(String, long) - Method in class antichess.TextPlayer
 
doMoveInternal(ChessMove, String) - Method in class antichess.ChessBoard
Attempt to perform a move, returning true if it's legal
doPossibleMove() - Method in class antichess.TextAIPlayer
 
doPossibleMove() - Method in interface antichess.TextGamePlayer
Asks the TextGamePlayer to do the move returned by getPossibleMove If not move is returned by getPossibleMove no move is performed
doPossibleMove() - Method in class antichess.TextPlayer
Prints 'Please specify human move' to stdout
DRAW - Static variable in class antichess.Board
End-game condition that signifies a draw

E

endGame(int, Player) - Method in class antichess.Board
Terminates the current game, specifying the cause of game termination and the winner.
equals(Object) - Method in class antichess.ChessMove
 
equals(Object) - Method in class antichess.Piece
 
existsACaptureMove() - Method in class antichess.AntichessBoard
 

F

findMove(B, long, long) - Method in interface antichess.ai.GameAI
Return a move computed by the AI for the given board, with the given amount of time remaining, in milliseconds.
findMove(B, long, long) - Method in class antichess.ai.MinimaxAI
 
FORCEDEND - Static variable in class antichess.Board
End-game condition variable to represent a forced end

G

GameAI<M extends Move,B extends Board<M>> - Interface in antichess.ai
The GameAI class represents an abstract AI over a Board.
GameClock - Class in antichess
GameClock is a represents a set of timers for use in a game.
GameClock(Player[], long[]) - Constructor for class antichess.GameClock
playerList is an array of Players which each clock will be associated with startTimes is a list of start times for the players in playerList.
GameClock(Player[], long[], long[]) - Constructor for class antichess.GameClock
playerList is an array of Players which each clock will be associated with startTimes is a list of start times for the players in playerList.
GameController<M extends Move> - Class in antichess
GameController handles automatically getting moves from GamePlayers and then making these moves on the board.
GameController(Board<M>, GameClock, List<GamePlayer<M>>, ControllerState) - Constructor for class antichess.GameController
Constructor for a GameController with board = board clock = clock playerList = playerList state = state
GameControllerObserver - Interface in antichess
GameControllerObservers are notified by a GameController of the current state of the GameController.
GameDescriptor - Class in antichess
A GameDescriptor is an immutable ADT that stores the information required for generating a new game.
GameDescriptor(String, List<Player>, List<String>, long[], boolean) - Constructor for class antichess.GameDescriptor
Constructor
GameDescriptorTests - Class in antichess.test
Test the GameWriter class
GameDescriptorTests() - Constructor for class antichess.test.GameDescriptorTests
 
gameEnded() - Method in class antichess.AIPlayer
Tell the AI thread to quit
gameEnded() - Method in class antichess.ChessPlayer
 
gameEnded() - Method in interface antichess.GamePlayer
Informs the player that this game is over, and it will not be asked for any more moves.
gameEnded() - Method in class antichess.RandomAI
 
gameEnded() - Method in class antichess.TextAIPlayer
 
gameEnded() - Method in class antichess.TextPlayer
 
gameOverReason - Variable in class antichess.Board
 
GamePlayer<M extends Move> - Interface in antichess
The GamePlayer interface allows for communication between the contoller and objects that generate moves such as the view or the AI.
GameReader - Class in antichess
The GameReader class reads XML game files for antichess games.
GameReader(InputStream) - Constructor for class antichess.GameReader
 
GameReader(File) - Constructor for class antichess.GameReader
 
GameReader(String) - Constructor for class antichess.GameReader
 
GameReaderTests - Class in antichess.test
Tests for the GameReader class
GameReaderTests() - Constructor for class antichess.test.GameReaderTests
 
GameTimer - Class in antichess
The GameTimer stores a time that ticks down when GameTimer is running.
GameTimer(long, long) - Constructor for class antichess.GameTimer
Creates a GameTimer with a start time and current time of startTime
GameTimer(long, long, long) - Constructor for class antichess.GameTimer
Creates a GameTimer with a start time of startTime, but a current time of currentTime
GameTimerListener - Interface in antichess
An interface for objects listening to the GameTimerListener
GameTimerTest - Class in viewguitest
Some tests for the GameTimer, hard to do because it is a timer.
GameTimerTest(String) - Constructor for class viewguitest.GameTimerTest
 
GameWriter - Class in antichess
The GameWriter writes ChessBoard objects out to XML files.
GameWriter(ChessBoard) - Constructor for class antichess.GameWriter
 
GameWriter(ChessBoard, GameTimer, GameTimer) - Constructor for class antichess.GameWriter
Construct a new GameWriter with the given Board, and the given timers * @requires board != null && ((whiteTimer == null && blackTimer == null) || (whiteTimer != null && blackTimer != null))
GameWriterTests - Class in antichess.test
Test the GameWriter class
GameWriterTests() - Constructor for class antichess.test.GameWriterTests
 
GameWriterTests(String) - Constructor for class antichess.test.GameWriterTests
 
getAllowSaveLoad() - Method in class antichess.GameDescriptor
 
getAvgTime() - Method in class antichess.test.TimeProfiler
 
getBishopType() - Static method in class antichess.PieceTypeFactory
 
getBlackTimer() - Method in class antichess.GameReader
 
getBoard() - Method in class antichess.GameReader
 
getBoardView() - Method in class antichess.viewgui.ChessGUI
 
getCapturedPiece() - Method in class antichess.ChessMove
 
getCapturedPieces() - Method in class antichess.ChessBoard
 
getCapturedPieces(Player) - Method in class antichess.ChessBoard
 
getClock(GameDescriptor) - Method in class antichess.ControllerMaster
 
getClock() - Method in class antichess.GameController
 
getColumn() - Method in class antichess.ChessMove
 
getColumn() - Method in class antichess.Piece
 
getColumns() - Method in class antichess.Board
 
getColumns() - Method in class antichess.ChessBoard
 
getContentPane() - Method in class viewguitest.BoardViewTest
 
getContentPane() - Method in class viewguitest.ImageMapTest
 
getContentPane() - Method in class viewguitest.TimerLabelTest
 
getCurrentPlayer() - Method in class antichess.GameClock
 
getGameOverReason() - Method in class antichess.Board
 
getGameTypeName() - Method in class antichess.GameDescriptor
 
getHistory() - Method in class antichess.MoveHistory
 
getImage(String) - Method in class antichess.viewgui.ImageMap
 
getKingType() - Static method in class antichess.PieceTypeFactory
 
getKnightType() - Static method in class antichess.PieceTypeFactory
 
getLastMove() - Method in class antichess.MoveHistory
 
getLastMoveTime() - Method in class antichess.MoveHistory
 
getLastTime() - Method in class antichess.test.TimeProfiler
 
getMove(GameController) - Method in class antichess.AIPlayer
 
getMove(GameController) - Method in class antichess.ChessPlayer
This function returns the currentMove and then sets the currentMove to null currentMove is null if there is no move cached.
getMove(GameController) - Method in interface antichess.GamePlayer
Asks the player for a move, if the player has a move the move is returned, if the player doesn't, null is returned immediately Once this GamePlayer is able to return a valid move it calls notifyControllerHasMove() on the controller.
getMove(GameController) - Method in interface antichess.HumanPlayer
 
getMove() - Method in exception antichess.IllegalMoveException
 
getMove(String, long, long) - Method in class antichess.MachinePlayer
The same as makeMove(String, long, long), to implement the AiPlayer interface
getMove(GameController) - Method in class antichess.RandomAI
 
getMove(GameController) - Method in class antichess.TextAIPlayer
 
getMove(GameController) - Method in class antichess.TextPlayer
 
getMoveHistory() - Method in class antichess.Board
 
getMovement(Piece) - Method in class antichess.ChessBoard
Helper method to get the MoveGenerator for a given piece
getMovement(Piece) - Method in class antichess.test.MoveGeneratorTests
 
getMovement() - Method in class antichess.test.NullPieceType
 
getMoves(Piece, Board<ChessMove>) - Method in class antichess.movegen.CastlingMoveGenerator
 
getMoves(Piece, Board<ChessMove>) - Method in class antichess.movegen.ChessMoveGenerator
 
getMoves(Piece, Board) - Method in class antichess.movegen.JumpMoveGenerator
 
getMoves(Piece, Board) - Method in class antichess.movegen.LinearMoveGenerator
 
getMoves(Piece, Board<ChessMove>) - Method in class antichess.movegen.PawnMoveGenerator
 
getMoves(Piece, Board<M>) - Method in class antichess.movegen.UnionMoveGenerator
 
getMoves(Piece, Board<M>) - Method in interface antichess.MoveGenerator
 
getMoves(Piece, Board) - Method in class antichess.test.NullMoveGenerator
 
getMoveTimes() - Method in class antichess.MoveHistory
 
getName() - Method in class antichess.MachinePlayer
 
getName() - Method in interface antichess.PieceType
 
getName() - Method in class antichess.test.NullPieceType
 
getNamedType(String) - Static method in class antichess.PieceTypeFactory
 
getNextMove() - Method in class antichess.TextUI
If this command is called during a human player's turn, the command prints Human turn on its own line.
getPawnType() - Static method in class antichess.PieceTypeFactory
 
getPersistentState() - Method in class antichess.MachinePlayer
Return our updated persistent state
getPiece() - Method in class antichess.Move
 
getPieceAt(int, int) - Method in class antichess.Board
 
getPieceAt(int, int) - Method in class antichess.ChessBoard
 
getPieces() - Method in class antichess.Board
 
getPieces(Player) - Method in class antichess.Board
 
getPieces() - Method in class antichess.ChessBoard
 
getPieces(Player) - Method in class antichess.ChessBoard
 
getPlayer() - Method in class antichess.Board
 
getPlayer() - Method in class antichess.Move
 
getPlayer() - Method in class antichess.Piece
 
getPlayerDescriptions() - Method in class antichess.GameDescriptor
 
getPlayers() - Method in class antichess.GameDescriptor
 
getPlayerTimes() - Method in class antichess.GameDescriptor
 
getPlayerType() - Method in class antichess.AIPlayer
 
getPlayerType() - Method in class antichess.ChessPlayer
 
getPlayerType() - Method in interface antichess.GamePlayer
 
getPlayerType() - Method in interface antichess.HumanPlayer
 
getPlayerType() - Method in class antichess.RandomAI
 
getPlayerType() - Method in class antichess.TextAIPlayer
 
getPlayerType() - Method in class antichess.TextPlayer
 
getPossibleMove() - Method in class antichess.TextAIPlayer
 
getPossibleMove() - Method in interface antichess.TextGamePlayer
Asks the TextGamePlayer to set a possible move if it can.
getPossibleMove() - Method in class antichess.TextPlayer
Prints 'Human turn' to stdout
getPreferredSize() - Method in class antichess.viewgui.ChessBoardView
Sets the preferred size of the boardView to be the size of the board image
getQueenType() - Static method in class antichess.PieceTypeFactory
 
getRookType() - Static method in class antichess.PieceTypeFactory
 
getRow() - Method in class antichess.ChessMove
 
getRow() - Method in class antichess.Piece
 
getRows() - Method in class antichess.Board
 
getRows() - Method in class antichess.ChessBoard
 
getStartTime() - Method in class antichess.GameTimer
 
getSupportedRulesets() - Method in class antichess.net.AiPlayerFactory
 
getTime(Player) - Method in class antichess.GameClock
 
getTime() - Method in class antichess.GameTimer
 
getTime(Player) - Method in class antichess.TextUI
Prints the time for player to stdout
getTimeFormat(long) - Method in class antichess.viewgui.TimerLabel
 
getTimer(Player) - Method in class antichess.GameClock
 
getType() - Method in class antichess.Piece
 
getWhiteTimer() - Method in class antichess.GameReader
 
getWinner() - Method in class antichess.Board
 

H

hasALegalMove() - Method in class antichess.AntichessBoard
 
hasALegalMove() - Method in class antichess.Board
 
hasALegalMove() - Method in class antichess.ChessBoard
 
hasAskedForMove(Player) - Method in interface antichess.GameControllerObserver
Notifies the observer that it has asked for a move from the player
hasAskedForMove(Player) - Method in class antichess.TextUI
This is called by the controller when a move has been asked for
hasController() - Method in class antichess.ControllerState
 
hasCorrectCapturedPiece(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.ChessMoveGenerator
 
hasCorrectCapturedPiece(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.PawnMoveGenerator
 
hashCode() - Method in class antichess.ChessMove
 
hashCode() - Method in class antichess.Piece
 
hasMadeMove(Player) - Method in interface antichess.GameControllerObserver
Notifies the observer that it has made a move for player
hasMadeMove(Player) - Method in class antichess.TextUI
This is called by the controller when a player has made a move
hasMoved() - Method in class antichess.Piece
 
hasPlayer(Player) - Method in class antichess.GameClock
 
HumanPlayer<M extends Move> - Interface in antichess
This interface handles interactions between the Controller and the View The HumanPlayer facilitates the communication between the GameController and the BoardView class.
humanReadableString() - Method in class antichess.ChessMove
 

I

IllegalMoveException - Exception in antichess
An Exception thrown when a client asks a Board to make an illegal move.
IllegalMoveException(Move) - Constructor for exception antichess.IllegalMoveException
 
ImageMap - Class in antichess.viewgui
ImageMap is a class for loading and storing images.
ImageMap(String) - Constructor for class antichess.viewgui.ImageMap
 
ImageMapTest - Class in viewguitest
The MainView class handles all of the GUI, the rendering the management of options etc.
ImageMapTest() - Constructor for class viewguitest.ImageMapTest
 
initializeTimers() - Method in class viewguitest.GameTimerTest
 
inputLoop() - Method in class antichess.TextUI
Repeatedly calls parseInput
InvalidGameFileException - Exception in antichess
A InvalidGameFileException is throw by BoardReader if it attempts to load an invalid game file.
InvalidGameFileException(String) - Constructor for exception antichess.InvalidGameFileException
 
isChessMoveLegal(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.CastlingMoveGenerator
 
isChessMoveLegal(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.ChessMoveGenerator
Check that the given move is legal for this piece type.
isChessMoveLegal(ChessMove, Board) - Method in class antichess.movegen.JumpMoveGenerator
 
isChessMoveLegal(ChessMove, Board) - Method in class antichess.movegen.LinearMoveGenerator
 
isChessMoveLegal(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.PawnMoveGenerator
 
isGameOver() - Method in class antichess.Board
 
isLegalMove(String) - Method in class antichess.TextUI
 
isMoveLegal(ChessMove) - Method in class antichess.AntichessBoard
 
isMoveLegal(M) - Method in class antichess.Board
 
isMoveLegal(ChessMove) - Method in class antichess.ChessBoard
 
isMoveLegal(ChessMove, Board<ChessMove>) - Method in class antichess.movegen.ChessMoveGenerator
Ensures that the given move is a ChessMove, that its destination coordinates are within the bounds of the Board, and that the Piece on the board at the destination square is either null, or belongs to the other player than the Move's player.
isMoveLegal(M, Board<M>) - Method in class antichess.movegen.UnionMoveGenerator
 
isMoveLegal(M, Board<M>) - Method in interface antichess.MoveGenerator
 
isMoveLegal(Move, Board) - Method in class antichess.test.NullMoveGenerator
 
isOver() - Method in class antichess.GameController
 
isPaused() - Method in class antichess.ControllerState
 
isPlayerInCheck(Player) - Method in class antichess.ChessBoard
 
isRunning() - Method in class antichess.ControllerMaster
 
isRunning() - Method in class antichess.ControllerState
 
isRunning() - Method in class antichess.GameTimer
 
isStopped() - Method in class antichess.ControllerState
 
isTimed() - Method in class antichess.GameReader
 

J

JumpMoveGenerator - Class in antichess.movegen
A JumpMoveGenerator is a MoveGenerator for pieces that ``jump'' in some pattern, regardless of whether there are pieces in the way.
JumpMoveGenerator(int[], int[]) - Constructor for class antichess.movegen.JumpMoveGenerator
 

K

keyPressed(KeyEvent) - Method in class antichess.viewgui.ChessBoardView
 
keyReleased(KeyEvent) - Method in class antichess.viewgui.ChessBoardView
 
keyTyped(KeyEvent) - Method in class antichess.viewgui.ChessBoardView
Needed for KeyListener inheritance

L

legalMoves(Piece) - Method in class antichess.AntichessBoard
 
legalMoves(Piece) - Method in class antichess.Board
 
legalMoves(Piece) - Method in class antichess.ChessBoard
 
line - Variable in class antichess.ai.AIMove
line is used to store a linked list of the principal variation discovered by minimax
LinearMoveGenerator - Class in antichess.movegen
A LinearMoveGenerator represents movement along a line an unbounded distance, stopping at other pieces or the edge of the board.
LinearMoveGenerator(boolean, boolean) - Constructor for class antichess.movegen.LinearMoveGenerator
 
load(File, GameDescriptor) - Method in class antichess.ControllerMaster
Stops the current game and loads a game specified by fileName If currentGame is "Antichess" or "TextAntichess": If readFile does fit the format specified by: http://www.mit.edu/~6.170/assignments/antichess/antichess.xsd it loads the file.
loadBoard(ChessBoard, String, Player) - Static method in class antichess.GameReader
 
loadGame(List<Piece>, Player, MoveHistory<ChessMove>) - Method in class antichess.AntichessBoard
 
loadGame(List<Piece>, Player, MoveHistory<ChessMove>) - Method in class antichess.ChessBoard
Loads the board parameters from the given state
loadGame(String) - Method in class antichess.TextUI
Loads the game from the file specified by filename.
LoadGameWindow - Class in antichess.viewgui
LoadGameWindow handles selecting the options for loading new games.
loadImage(String) - Method in class antichess.viewgui.ImageMap
 
loadImage(String, String) - Method in class antichess.viewgui.ImageMap
 
loadImageList(List<String>) - Method in class antichess.viewgui.ImageMap
 

M

MachinePlayer - Class in antichess
A MachinePlayer is a player of Antichess that uses artificial intelligence to decide on its moves.
MachinePlayer(boolean, int) - Constructor for class antichess.MachinePlayer
 
MachinePlayer(boolean, int, String) - Constructor for class antichess.MachinePlayer
 
MachinePlayerTests - Class in antichess.test
Test the MachinePlayer class.
MachinePlayerTests() - Constructor for class antichess.test.MachinePlayerTests
 
main(String[]) - Static method in class antichess.ControllerMaster
Starts a human vs human, untimed game of Antichess with a GUI
main(String[]) - Static method in class antichess.test.ChessBoardTimeProfile
 
main(String[]) - Static method in class antichess.TestAI
 
main(String[]) - Static method in class antichess.TextUI
main is an interactive loop between a human and a computer.
main(String[]) - Static method in class viewguitest.BoardViewTest
 
main(String[]) - Static method in class viewguitest.ImageMapTest
Tests the basics of loading images and getting images with the ImageMap class Tests loadImage, getImage, loadImageList
main(String[]) - Static method in class viewguitest.TimerLabelTest
 
makeMove(String, long, long) - Method in class antichess.MachinePlayer
 
makeMove(String, long) - Method in class antichess.TextUI
Perform the move specified by the move string, in the "standard string format".
makeNextMove() - Method in class antichess.TextUI
If it is a human player's turn, the system should print Please specify human move on its own line.
MinimaxAI<M extends Move,B extends Board<M>> - Class in antichess.ai
MinimaxAI is a GameAI that implements the minimax game search algorithm
MinimaxAI(BoardEvaluator<B>) - Constructor for class antichess.ai.MinimaxAI
 
mouseClicked(MouseEvent) - Method in class antichess.viewgui.ChessBoardView
Needed for implementing the MouseListener interface
mouseEntered(MouseEvent) - Method in class antichess.viewgui.ChessBoardView
Needed for implementing the MouseListener interface
mouseExited(MouseEvent) - Method in class antichess.viewgui.ChessBoardView
Needed for implementing the MouseListener interface
mousePressed(MouseEvent) - Method in class antichess.viewgui.ChessBoardView
 
mouseReleased(MouseEvent) - Method in class antichess.viewgui.ChessBoardView
Needed for implementing the MouseListener interface
move - Variable in class antichess.ai.AIJob
The move to evaluate on the board
move - Variable in class antichess.ai.AIMove
The game move represented by this AIMove
Move - Class in antichess
A Move represents a a single move by one player in a game on a Board.
Move(Piece) - Constructor for class antichess.Move
 
MoveGenerator<M extends Move> - Interface in antichess
A MoveGenerator is an abstract representation of the types of moves allowed by a piece.
MoveGeneratorTests - Class in antichess.test
Tests that the various pieces generate the correct moves.
MoveGeneratorTests(String) - Constructor for class antichess.test.MoveGeneratorTests
 
MoveHistory<M extends Move> - Class in antichess
A linked-list implementation of the history of moves.
MoveHistory(M) - Constructor for class antichess.MoveHistory
Creates a new MoveHistory m, with lastMove(m) = lastMove and an empty string as a timestamp.
MoveHistory(M, String) - Constructor for class antichess.MoveHistory
Creates a new MoveHistory with one Move
MoveHistoryTests - Class in antichess.test
 
MoveHistoryTests(String) - Constructor for class antichess.test.MoveHistoryTests
 
MoveHistoryView - Class in antichess.viewgui
MoveHistoryView displays the history for a ChessBoard.
MoveHistoryView(ChessBoard, int, int) - Constructor for class antichess.viewgui.MoveHistoryView
Creates a new MoveHistoryView
MoveHistoryViewTests - Class in antichess.test
Tests to verify the output of the MoveHistoryView, namely, that moves are being displayed correctly in the Move History section of the GUI.
MoveHistoryViewTests(String) - Constructor for class antichess.test.MoveHistoryViewTests
 
moveStack - Variable in class antichess.Board
 
moveTo(int, int) - Method in class antichess.Piece
 

N

newGame() - Method in class antichess.AntichessBoard
 
newGame() - Method in class antichess.ChessBoard
Initializes the board for a new game
NewGameWindow - Class in antichess.viewgui
NewGameWindow handles the creation of new games.
noShowKitty() - Method in class antichess.viewgui.ChessBoardView
 
noShowLastMoves() - Method in class antichess.viewgui.ChessBoardView
 
noShowMoves() - Method in class antichess.viewgui.ChessBoardView
 
noShowPiecesWithMoves() - Method in class antichess.viewgui.ChessBoardView
 
notifyControllerHasMove() - Method in class antichess.GameController
Notifies the GameController that the current GamePlayer has a move
notifyControllerStateChange() - Method in class antichess.GameController
Notifies the controller that state has changed
notifyHasMove() - Method in class antichess.ChessPlayer
Notifies the controller that requested a move if it has a move
notifyHasMove() - Method in interface antichess.HumanPlayer
Notifies the controller that requested a move if it has a move
notifyObservers() - Method in class antichess.Board
Updates all observers in the list of observers that the Board has been changed.
notifyTimeUpdate() - Method in class antichess.GameTimer
Calls refreshTimer on all the listeners
NOTOVER - Static variable in class antichess.Board
Default Board termination condition, indicating that the game is not over
NullMoveGenerator - Class in antichess.test
This class is a stub MoveGenerator that produces no moves.
NullMoveGenerator() - Constructor for class antichess.test.NullMoveGenerator
 
NullPieceType - Class in antichess.test
NullPieceType is a PieceType with type "NULL" and a NullMoveGenerator
NullPieceType() - Constructor for class antichess.test.NullPieceType
 
numTrials() - Method in class antichess.test.TimeProfiler
 

O

observers - Variable in class antichess.Board
 
otherPlayer() - Method in enum antichess.Player
 
OUTOFPIECES - Static variable in class antichess.AntichessBoard
End-game condition variable representing that some player has lost all of his pieces.
OUTOFTIME - Static variable in class antichess.Board
End-game condition that signifies that the game has run out of time for some player

P

paint(Graphics) - Method in class antichess.viewgui.ChessBoardView
Draws the viewedBoard onto g.
parseInput(String) - Method in class antichess.TextUI
supported commands are: StartNewGame [player] [time] [player] [time] Each player is denoted as "human" or "computer." The times specified are the initial "time remaining" for the player, in milliseconds.
parseMove(String, ChessBoard) - Static method in class antichess.GameReader
 
pauseGame() - Method in class antichess.ControllerMaster
Pauses the current game
pauseGame() - Method in class antichess.ControllerState
Causes the currentGameController to pause
PawnMoveGenerator - Class in antichess.movegen
A PawnMoveGenerator represents the movement of a chess pawn
PawnMoveGenerator() - Constructor for class antichess.movegen.PawnMoveGenerator
 
Piece - Class in antichess
A Piece represents a piece on a board.
Piece(Player, PieceType, int, int) - Constructor for class antichess.Piece
 
pieceMoveTypes - Static variable in class antichess.ChessBoard
Stores a map between PieceTypes and the MoveGenerators for those PieceTypes.
pieceMoveTypes - Static variable in class antichess.test.MoveGeneratorTests
 
PieceTests - Class in antichess.test
Tests for the Piece class
PieceTests(String) - Constructor for class antichess.test.PieceTests
 
PieceType - Interface in antichess
PieceType represents an abstract piece type -- a pawn, rook, etc.
PieceTypeFactory - Class in antichess
PieceTypeFactory contains static methods for generating singleton instances of PieceTypes for every type of Chess piece.
player - Variable in class antichess.Board
 
Player - Enum in antichess
Player is a simple enumeration representing the two sides in a game of Chess or Antichess.
popMove() - Method in class antichess.Board
Pop a move off the internal move stack and return it
postRefresh() - Method in interface antichess.BoardObserver
Tells the board observer that the state of the Board has changed.
postRefresh() - Method in interface antichess.viewgui.BoardView
Notifies the BoardView that the board has changed
postRefresh() - Method in class antichess.viewgui.ChessBoardView
Repaints the board taking any updated information about the board into account.
postRefresh() - Method in class antichess.viewgui.ChessGUI
ChessGUI is a BoardObserver so this method is called whenever the currentBoard deems it necesary.
postRefresh() - Method in class antichess.viewgui.MoveHistoryView
Refreshes the text value in the history
printAllMoves() - Method in class antichess.TextUI
Prints an alphabetized list of legal moves to stdout
printBoard() - Method in class antichess.TextUI
System should print the current "state" of the game to the screen using the same format as if it were being saved to a file.
pushMove(M, String) - Method in class antichess.Board
Pushes the given move onto the internal piece stack

Q

quitGame() - Method in class antichess.TextUI
Prints (on its own line) Exiting game and terminates the present game and application.

R

RandomAI - Class in antichess
 
refreshTimer(long) - Method in interface antichess.GameTimerListener
a method for receiving an update of the time from the gameTimer.
refreshTimer(long) - Method in class antichess.viewgui.TimerLabel
Refreshes the text value displayed in the field
removeLastMove() - Method in class antichess.MoveHistory
 
removeObserver(BoardObserver) - Method in class antichess.Board
Removes an observer from the list of BoardObservers.
requestingPause() - Method in class antichess.ControllerState
 
requestingStop() - Method in class antichess.ControllerState
 
requestingUnpause() - Method in class antichess.ControllerState
 
run() - Method in class antichess.AIPlayer
The thread in the run() method is responsible for actually asking the GameAI to make moves.
run() - Method in class antichess.GameController
 
run() - Method in class antichess.GameTimer
Refreshes the time for all the listeners
run() - Method in class antichess.TextUI
For use as a Runnable object.
run() - Method in class antichess.viewgui.ChessGUI
Calls showGUI().

S

save(File) - Method in class antichess.ControllerMaster
Saves the current game to the the file specified by writeFile.
saveGame(String) - Method in class antichess.TextUI
Saves the game to the file specified by filename and then prints "Game saved" to stdout
setAcceptingInput(HumanPlayer) - Method in interface antichess.viewgui.BoardView
Sets the BoardView to accept input from the humanPlayer If the BoardView is already accepting input this call does nothing
setAcceptingInput(HumanPlayer) - Method in class antichess.viewgui.ChessBoardView
 
setMove(int[], int[], int[], int[]) - Method in class antichess.ChessPlayer
Specific for ChessMove right now
setMove(int[], int[], int[], int[]) - Method in interface antichess.HumanPlayer
 
setNotAcceptingInput() - Method in interface antichess.viewgui.BoardView
Sets the BoardView to not accept input from the humanPlayer If the BoardView is already not accepting input this call does nothing
setNotAcceptingInput() - Method in class antichess.viewgui.ChessBoardView
 
setPaused() - Method in class antichess.ControllerState
This method is meant to be called by the currentController It notifies the the ControllerState of a state change
setRunning() - Method in class antichess.ControllerState
This method is meant to be called by the currentController It notifies the the ControllerState of a state change
setStopped() - Method in class antichess.ControllerState
This method is meant to be called by the currentController It notifies the the ControllerState of a state change
setTime(long, Player) - Method in class antichess.GameClock
 
setTime(long) - Method in class antichess.GameTimer
 
showBoard() - Method in class antichess.TextUI
Prints a representation of board to stdout
showGUI() - Method in class antichess.viewgui.ChessGUI
Shows this GUI.
showKitty() - Method in class antichess.viewgui.ChessBoardView
 
showLastMoves() - Method in class antichess.viewgui.ChessBoardView
 
showMoves() - Method in class antichess.viewgui.ChessBoardView
 
showPiecesWithMoves() - Method in class antichess.viewgui.ChessBoardView
 
SPRING_2007_RULESET - Variable in class antichess.net.AiPlayerFactory
 
STALEMATE - Static variable in class antichess.ChessBoard
End-game condition variable to represent stalemate.
start() - Method in class antichess.GameTimer
Starts the timer
start() - Method in class antichess.test.TimeProfiler
 
startDisco() - Method in class antichess.viewgui.ChessBoardView
Turns on disco mode
startGame() - Method in class antichess.ControllerState
Causes the currentController to start its loop if it was previously stopped
startNewGame(GameDescriptor) - Method in class antichess.ControllerMaster
Starts a new game based of the format specified in GameDescriptor
startNewGame(String, long, String, long) - Method in class antichess.TextUI
 
startTimer(Player) - Method in class antichess.GameClock
 
stop() - Method in class antichess.GameTimer
Stops the timer
stop() - Method in class antichess.test.TimeProfiler
 
stopDisco() - Method in class antichess.viewgui.ChessBoardView
Turns off disco mode
stopGame() - Method in class antichess.ControllerState
Causes the currentController to stop executing the run loop
stopTimer() - Method in class antichess.GameClock
 
stringToMove(String, AntichessBoard) - Static method in class antichess.TextPlayer
Converts a string 'move' to the move specified by the
suite() - Static method in class antichess.test.AITests
 
suite() - Static method in class antichess.test.AllTests
 
switchGame(AntichessBoard, GameClock, TextGamePlayer, TextGamePlayer, GameController) - Method in class antichess.TextUI
 
switchGameController(GameController) - Method in class antichess.ControllerState
 
switchPlayer() - Method in class antichess.AntichessBoard
 
switchPlayer() - Method in class antichess.ChessBoard
 
switchViewedBoard(ChessBoard) - Method in class antichess.viewgui.ChessBoardView
 
switchViewedGame(ChessBoard, GameClock) - Method in class antichess.viewgui.ChessGUI
 

T

testAddMove() - Method in class antichess.test.MoveHistoryTests
 
TestAI - Class in antichess
 
TestAI() - Constructor for class antichess.TestAI
 
testAutomaticallyTimed() - Method in class antichess.test.TextAIPlayerTests
Tests that automaticallyTimed is false
testAutomaticallyTimed() - Method in class antichess.test.TextPlayerTests
Tests that automaticallyTimed is false
testBishop() - Method in class antichess.test.MoveGeneratorTests
 
testCastling() - Method in class antichess.test.ChessBoardTests
Test that both black and white can castle
testCastling() - Method in class antichess.test.MoveGeneratorTests
 
testClone() - Method in class antichess.test.ChessBoardTests
Verifies that cloning a board works and has the desired effect.
testColumnAndRowSpace() - Method in class antichess.test.MoveHistoryViewTests
Test to verify that the column and row spaces of each of the new moves submitted to the move history are valid, and that moves are formatted properly in this Text Box.
testConstructor() - Method in class antichess.test.ChessBoardTests
Verifies that chessboards may be constructed through their constructor and that doing so has the desired effect.
testConstructor() - Method in class antichess.test.ChessMoveTests
Tests that the Constructor can create ChessMoves with the expected values when given legal inputs, withough unexpected consequences.
testConstructor() - Method in class antichess.test.ControllerStateTests
Tests whether the constructor thorws any exceptions
testConstructor() - Method in class antichess.test.GameDescriptorTests
Tests the constructor with a range of legal values.
testConstructor() - Method in class antichess.test.MoveHistoryTests
 
testConstructor() - Method in class antichess.test.PieceTests
 
testConstructor() - Method in class antichess.test.TextAIPlayerTests
Tests that the constructor for a legal value does not through any exceptions
testConstructor() - Method in class antichess.test.TextPlayerTests
Tests that constructor doesn't throw an exception with valid values
testConstructor() - Method in class viewguitest.GameTimerTest
Tests to see if the constructor is able to create valid GameTimers without throwing errors.
testCreation() - Method in class antichess.test.MachinePlayerTests
 
testDefaultBoard() - Method in class antichess.test.GameWriterTests
 
testDoMove() - Method in class antichess.test.TextAIPlayerTests
Tests that doMove returns false
testEndGameEvaluation() - Method in class antichess.test.AntichessBoardEvaluatorTest
Test boards in an end-game state.
testEndGamePriority() - Method in class antichess.test.AntichessBoardTests
Test that the checkmate end-game prevails over the out-of-pieces endgame
testEnPassant() - Method in class antichess.test.ChessBoardTests
Test that we can perform en passant captures
testEnPassant() - Method in class antichess.test.MoveGeneratorTests
 
testEquals() - Method in class antichess.test.ChessMoveTests
Tests the equality between ChessMoves, verifying that ChessMoves that should be equal are equal, unequal ChessMoves are unequal, and ChessMoves aren't equal to non-ChessMoves.
testEquals() - Method in class antichess.test.PieceTests
 
testExceptionsThrown() - Method in class antichess.test.GameDescriptorTests
Tests that illegal argument exceptions are thrown for invalid input
testFalseEnPassant() - Method in class antichess.test.MoveGeneratorTests
Make sure pawns can't capture en passant when they shouldn't be able able to (e.g.
testGameOver() - Method in class antichess.test.GameWriterTests
p Test round-tripping with a game that's over.
testGameOverEvaluation() - Method in class antichess.test.AntichessBoardEvaluatorTest
Test Board values that are in a game over state
testGetAllowSaveLoad() - Method in class antichess.test.GameDescriptorTests
Tests getAllowSaveLoad
testgetGameTypeName() - Method in class antichess.test.GameDescriptorTests
Tests getGameTypeName()
testGetPlayerDescriptions() - Method in class antichess.test.GameDescriptorTests
Tests getPlayerDescriptions
testGetPlayers() - Method in class antichess.test.GameDescriptorTests
Tests getPlayers()
testGetPlayerTimes() - Method in class antichess.test.GameDescriptorTests
Tests getPlayerTimes()
testGetPlayerType() - Method in class antichess.test.TextAIPlayerTests
Tests getPlayerType for BLACK and WHITE TextPlayers
testGetPlayerType() - Method in class antichess.test.TextPlayerTests
Tests getPlayerType for BLACK and WHITE TextPlayers
testHasSwitchController() - Method in class antichess.test.ControllerStateTests
Tests hasController and switchController Note that GameController automatically calls switchController in its constructor
testIllegalCastling() - Method in class antichess.test.MoveGeneratorTests
 
testImmutable() - Method in class antichess.test.MoveHistoryTests
 
testImmutable() - Method in class antichess.test.PieceTests
 
testInitialGetTime() - Method in class viewguitest.GameTimerTest
Tests that retrieving the initial time works Tests getTime() without running the GameTimers
testInvalidGame() - Method in class antichess.test.GameReaderTests
 
testIsRunning() - Method in class viewguitest.GameTimerTest
Tests isRunning()
testKing() - Method in class antichess.test.MoveGeneratorTests
 
testKnight() - Method in class antichess.test.MoveGeneratorTests
 
testKnightCaptures() - Method in class antichess.test.MoveGeneratorTests
 
testLoadAndMove() - Method in class antichess.test.AntichessBoardTests
Loads an arbitrary Board configuration onto the Board and verifies that this has the expected effect on the Board.
testLoadAndStalemate() - Method in class antichess.test.ChessBoardTests
Test loading games and the stalemate end-game conditions
testMove() - Method in class antichess.test.AntichessBoardTests
Tests that moves applied to an AntichessBoard have the expected legality and have the expected effects on the Board.
testMove() - Method in class antichess.test.ChessBoardTests
Tests that moves applied to a ChessBoard have the expected legality and have the expected effects on the Board.
testMove() - Method in class antichess.test.PieceTests
 
testMove2() - Method in class antichess.test.AntichessBoardTests
Tests that moves applied to an AntichessBoard have the expected legality and have the expected effects on the Board.
testMoveHistory() - Method in class antichess.test.ChessBoardTests
Really simple test for the initial move history.
testNewGame() - Method in class antichess.test.ChessBoardTests
Tests creating new games on a chessboard.
testNotXML() - Method in class antichess.test.GameReaderTests
 
testNullMoves() - Method in class antichess.test.AntichessBoardTests
Test that the board can make null moves
testOpeningMoves() - Method in class antichess.test.MachinePlayerTests
 
testOutOfPiecesEnd() - Method in class antichess.test.AntichessBoardTests
Tests the functionality of the Board to recognize the OUTOFPIECES end-game condition.
testOutOfTimeEnd() - Method in class antichess.test.ChessBoardTests
Tests the OUTOFTIME end-game condition, mainly, that setting this condition has the expected results.
testPawn() - Method in class antichess.test.MoveGeneratorTests
 
testPawnCaptures() - Method in class antichess.test.MoveGeneratorTests
 
testPawnPromote() - Method in class antichess.test.ChessBoardTests
Tests that pawn promotion has the expected result, and can be done and undone.
testPlayGame() - Method in class antichess.test.MachinePlayerTests
Play the opening of a game with two machine players
testQueen() - Method in class antichess.test.MoveGeneratorTests
 
testQueenCaptures() - Method in class antichess.test.MoveGeneratorTests
 
testRemoveLastMove() - Method in class antichess.test.MoveHistoryTests
 
testRook() - Method in class antichess.test.MoveGeneratorTests
 
testRoundTrip() - Method in class antichess.test.GameWriterTests
Test that we can save and restore a game and get the same thing.
testSampleGame() - Method in class antichess.test.GameReaderTests
 
testSelfConsistency() - Method in class antichess.test.AntichessBoardTests
Checks that legal moves returned from the board can be successfully executed.
testSelfConsistency() - Method in class antichess.test.ChessBoardTests
Checks that legal moves returned from the board can be successfully executed.
testSetGetTime() - Method in class viewguitest.GameTimerTest
Tests setTime() and getTime() while not running
testSetIsPaused() - Method in class antichess.test.ControllerStateTests
Tests setPause and isPaused
testSetIsRunning() - Method in class antichess.test.ControllerStateTests
Tests setRunning and isRunning
testSetIsStopped() - Method in class antichess.test.ControllerStateTests
Tests setStopped and isStopped
testStalemate() - Method in class antichess.test.MachinePlayerTests
Test that a MachinePlayer returns an empty move when it has no legal moves
testStandardEvaluation() - Method in class antichess.test.AntichessBoardEvaluatorTest
Test boards at the beginning of the game/not in an end-game state.
testStart() - Method in class viewguitest.GameTimerTest
Naive start test to see if the start() Works by calling start() and waiting after the timers should be run down to check if the timers have 0 remaining on them.
testStartGame() - Method in class antichess.test.GameReaderTests
 
testStop() - Method in class viewguitest.GameTimerTest
Naive start test to see if the stop() Works by calling start() and waiting a very short time, stop it and then waiting until the timers would run down to zero.
testStringToMove() - Method in class antichess.test.TextPlayerTests
Tests the stringToMove method on a variety of moves available with a starting board.
testStuckPawnHatred() - Method in class antichess.test.AntichessBoardEvaluatorTest
Test that the AntichessBoardEvaluator sufficiently hates blocked pawns for both sides.
testTestBoard() - Method in class antichess.test.MachinePlayerTests
 
testTimedGame() - Method in class antichess.test.GameWriterTests
 
testUndoNullMoves() - Method in class antichess.test.AntichessBoardTests
Test that the board can undo null moves
TextAIPlayer - Class in antichess
TextAIPlayer is an AIPlayer for use with the TextUI.
TextAIPlayer(AntichessBoard, GameClock, Player, Player) - Constructor for class antichess.TextAIPlayer
Creates a new TextAIPlayer currentMove = null clock = clock playerType = playerType board = board
TextAIPlayerTests - Class in antichess.test
 
TextAIPlayerTests() - Constructor for class antichess.test.TextAIPlayerTests
 
TextGamePlayer - Interface in antichess
The TextGamePlayer interface supports methods that the TextUI will call in order to fit the specifications for the TextUI.
TextPlayer - Class in antichess
TextPlayer implements the GamePlayer interface.
TextPlayer(AntichessBoard, GameClock, Player) - Constructor for class antichess.TextPlayer
Creates a new TextAIPlayer currentMove = null clock = clock playerType = playerType board = board
TextPlayerTests - Class in antichess.test
 
TextPlayerTests() - Constructor for class antichess.test.TextPlayerTests
 
TextUI - Class in antichess
TextUI is a text based user interface for a game of Antichess.
TextUI(ControllerMaster, boolean) - Constructor for class antichess.TextUI
Creates a new TextUI object master = master board = none clock = none players = none isRunning = false
TimeProfiler - Class in antichess.test
Simple Timer class for profiling.
TimeProfiler() - Constructor for class antichess.test.TimeProfiler
 
TimerLabel - Class in antichess.viewgui
A TimerLabel is a JLabel automatically refreshed by a ChessClock It displays the time in a minutes:seconds format.
TimerLabel(GameClock, Player) - Constructor for class antichess.viewgui.TimerLabel
Constructs a new TimerLabel that listens to a TimerLabel contained in a GameClock If the clock does not have a player associated with the
TimerLabelTest - Class in viewguitest
The TimerLabel test tests the TimerLabel class and the ChessClock class which in turn tests the methods in the GameTimer class that ChessClock relies on Because of the difficulty of writing automated tests for timers this is all implemented in a GUI.
TimerLabelTest() - Constructor for class viewguitest.TimerLabelTest
 
toString() - Method in class antichess.ChessMove
 
toString() - Method in class antichess.ControllerState
Prints the state the controller is currently in
toString() - Method in class antichess.Piece
 
totalTime() - Method in class antichess.test.TimeProfiler
 
tryMove - Variable in class antichess.ai.AIJob
A line of moves that the caller has reason to believe represents a good move from board after making move.

U

undoLastMove() - Method in class antichess.AntichessBoard
 
undoLastMove() - Method in class antichess.Board
 
undoLastMove() - Method in class antichess.ChessBoard
 
undoLastMoveInternal() - Method in class antichess.ChessBoard
Attempt to undo a move, returning true if it's successful
UnionMoveGenerator<M extends Move> - Class in antichess.movegen
A UnionMoveGenerator is a move generator that unions the moves produced by two MoveGenerators
UnionMoveGenerator(MoveGenerator<M>, MoveGenerator<M>) - Constructor for class antichess.movegen.UnionMoveGenerator
 
unpauseGame() - Method in class antichess.ControllerMaster
Unpauses the current game
unpauseGame() - Method in class antichess.ControllerState
Causes the currentController resume execution if it was previously paused

V

value - Variable in class antichess.ai.AIMove
The value of that move to the player making it
valueOf(String) - Static method in enum antichess.Player
Returns the enum constant of this type with the specified name.
values() - Static method in enum antichess.Player
Returns an array containing the constants of this enum type, in the order they're declared.
viewguitest - package viewguitest
 

W

winner - Variable in class antichess.Board
 
writeGame(File) - Method in class antichess.GameWriter
 
writeGame() - Method in class antichess.GameWriter
 

A B C D E F G H I J K L M N O P Q R S T U V W