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

A

actionPerformed(ActionEvent) - Method in class ui.GraphicUI
Called when a user presses one of the buttons.
actionPerformed(ActionEvent) - Method in class ui.NewGameDialog
Called when the user presses the Begin button.
addBeforeEachLine(String, String) - Static method in class other.Debug
 
addCounter(String) - Static method in class other.Debug
 
addStopwatchListener(StopwatchListener) - Method in class ui.Stopwatch
Adds a StopwatchListener to this.
ai - package ai
 
AIFactory - Class in ai
Implementation of AIPlayerFactory - See http://antichess.mit.edu:8080/core/index.html
AIFactory() - Constructor for class ai.AIFactory
See http://antichess.mit.edu:8080/core/index.html
AIFight - Class in test
 
AIFight(int[]) - Constructor for class test.AIFight
 
ALL - Static variable in class core.Position
 
ALLarray() - Static method in class core.Position
 
ALLfn() - Static method in class core.Position
 
arrayToString(Object) - Static method in class other.Debug
 
arrayToString(Object, String, String) - Static method in class other.Debug
 
arrayToStringln(Object) - Static method in class other.Debug
 
askForMove(Move) - Method in class ai.OptimizingAlphaBetaPlayer
 
askForMove(Move, long, long) - Method in class ai.OptimizingAlphaBetaPlayer
 
askForMove(Move) - Method in class ai.RandomPlayer
 
askForMove(Move) - Method in class core.HumanPlayer
 
askForMove(Move) - Method in class core.Player
Gets the next move of the player, given the opponents move.
askForMove(Move, long, long) - Method in class core.Player
 

B

Bishop - Class in rules
Bishop piece.
Bishop(Color, int) - Constructor for class rules.Bishop
 
BLOCKED_WEIGHT - Static variable in class ai.NegativePieceHeuristic
 
Board - Class in rules
The board for a game represented as a map from postions to pieces.
Board() - Constructor for class rules.Board
 
BoardPanel - Class in ui
 
BoardPanel() - Constructor for class ui.BoardPanel
Constructor
BoardPanelChecker - Class in test
 
BoardPanelChecker() - Constructor for class test.BoardPanelChecker
 
boardString() - Method in class rules.GameState
Return the String representation of the board

C

canMove() - Method in class rules.GameState
 
cdr() - Method in class ai.Variation
 
checkLegal(Player, int, Player, int) - Method in class test.GameTest
Initializes in a try block to give a useful error.
checkLegalHelper(Game, Player, int, Player, int) - Method in class test.GameTest
Makes sure initial values set correctly.
checkmater() - Method in class rules.GameState
 
checkRep() - Method in class rules.GameState
 
checkSaveLoadGame(String) - Method in class test.GameTest
Helper method that loads a game from a file, converts it to xml, loads it from xml, converts it back, and then compares it.
clearHistory() - Method in class ui.GraphicUI
Called by the main thread to clear move history
Color - Enum in core
 
color - Variable in class core.Piece
 
colors - Static variable in enum core.Color
 
cons(Move) - Method in class ai.Variation
 
constructor(Color, int) - Method in class rules.Bishop
 
constructor(Color, int) - Method in class rules.Queen
 
constructor(Color, int) - Method in class rules.Rook
 
constructor(Color, int) - Method in class rules.StraightPiece
 
copy() - Method in class rules.Board
 
copy() - Method in class rules.GameState
 
core - package core
 
count(String) - Static method in class other.Debug
 
createPlayer(boolean, int, int, String) - Method in class ai.AIFactory
 
createPlayer(boolean, int, int, String, int, int, int, int) - Method in class ai.AIFactory
 
createPlayer(boolean, Properties, ChatProxy, ChatHistoryViewer, byte[], int) - Method in class ai.AIFactory
See http://antichess.mit.edu:8080/core/index.html
createPlayer(boolean, Properties, ChatProxy, ChatHistoryViewer, byte[], int, int, int, int, int) - Method in class ai.AIFactory
 

D

Debug - Class in other
 
Debug() - Constructor for class other.Debug
 
Destroy - Class in rules
Empty piece.
Destroy() - Constructor for class rules.Destroy
Constructs a new Destroy instance
DialogChecker - Class in test
 
DialogChecker() - Constructor for class test.DialogChecker
 

E

Empty - Class in rules
Empty piece.
Empty() - Constructor for class rules.Empty
Constructs a new Empty instance
ENDING_WEIGHT - Variable in class ai.PawnWeightedPieceHeuristic
 
equals(Object) - Method in class core.Move
 
equals(Object) - Method in class core.Position
 
exception(Exception) - Static method in class other.Debug
 

F

fileContents(File) - Method in class test.TextUITestScript
 
fileWithSuffix(String) - Method in class test.TextUITestScript
 
fireTimeChanged() - Method in class ui.Stopwatch
Informs all of this Stopwatch's listeners that its time is decreasing
fromString(String) - Static method in enum core.Color
 
fromString(String) - Static method in class core.Move
 
fromString(String) - Static method in class core.Position
 
fromString(String) - Static method in class rules.Board
Creates a board from a string representation (see startingBoard for an example string)

G

Game - Class in core
A mutable class containing all the information about a game.
Game(Player, Player) - Constructor for class core.Game
Creates a new Game instance with Players and no times.
Game(Player, int, Player, int) - Constructor for class core.Game
Creates a new Game instance with Players and starting times.
Game(Player, int, Player, int, String) - Constructor for class core.Game
 
GameLoadException - Exception in core
An exception with a user readable error message about what went wrong with loading a file.
GameLoadException(String) - Constructor for exception core.GameLoadException
Creates an exception with a user readable error message about what went wrong with loading a file.
GameLoadException(String, Throwable) - Constructor for exception core.GameLoadException
Creates an exception with a user readable error message about what went wrong with loading a file, and keeps the throwable that lead to the exception.
GameOver - Enum in core
An enum with a user readable message about what why someone won.
GameSettings - Class in ui
 
GameSettings(boolean, int, boolean, int) - Constructor for class ui.GameSettings
Constructor that does not specify number of powerups.
GameSettings(boolean, int, boolean, int, int) - Constructor for class ui.GameSettings
 
GameState - Class in rules
An AntichessGameState is a GameState specific to Antichess.
GameState(Color, int, Board) - Constructor for class rules.GameState
Construct an Antichess-specific GameState.
GameState(Color, int, String) - Constructor for class rules.GameState
Construct an Antichess-specific GameState
GameState() - Constructor for class rules.GameState
Construct the initial GameState, representing the starting board position.
GameState(Map<Position, Piece>) - Constructor for class rules.GameState
Construct the initial GameState, representing the starting board position.
GameStateTest - Class in test
Unit tests for the GameState class.
GameStateTest(String) - Constructor for class test.GameStateTest
 
GameTest - Class in test
Unit tests for the Game class.
GameTest(String) - Constructor for class test.GameTest
 
GameThread - Class in ui
 
GameThread(GraphicUI) - Constructor for class ui.GameThread
 
get(int, int) - Static method in class core.Position
 
get(Position) - Method in class rules.Board
 
get(int, int) - Method in class rules.Board
 
getArtDirectory() - Static method in class ui.SquarePanel
 
getBlackTime() - Method in class ui.GameSettings
 
getBlackWatch() - Method in class ui.TimerBox
Returns the Stopwatch object keeping track of black's time left.
getBoard() - Method in class rules.GameState
 
getCallingMethod() - Static method in class other.Debug
 
getCanBeTaken() - Method in class ui.SquarePanel
Gets this square's capturability status
getCanMove() - Method in class ui.SquarePanel
Gets this square's mobility status
getColor() - Method in class core.Piece
 
getColor() - Method in class core.Player
 
getCurrentColor() - Method in class rules.GameState
 
getCurrentPlayer() - Method in class core.Game
Gives the current player to move.
getDepth() - Method in class ai.Variation
 
getFrom() - Method in class core.Move
 
getGame() - Method in class ui.GameThread
 
getGameState() - Method in class core.Game
Returns a mutable copy of the gamestate (changing it will change the game).
getGoodSum(int) - Method in class rules.StraightPiece
 
getLastMove() - Method in class core.Piece
 
getMove() - Method in class ai.Variation
 
getMove(String, long, long) - Method in class core.Player
 
getMoveHistory() - Method in class core.Game
History of moves that have been made so far, from first to last.
getMoveNum() - Method in class rules.GameState
 
getName() - Method in class core.Piece
 
getName() - Method in class rules.Bishop
 
getName() - Method in class rules.Destroy
 
getName() - Method in class rules.Empty
 
getName() - Method in class rules.King
 
getName() - Method in class rules.Knight
 
getName() - Method in class rules.Pawn
 
getName() - Method in class rules.Queen
 
getName() - Method in class rules.Rook
 
getName() - Method in class rules.Spawn
 
getName() - Method in class rules.Upgrade
 
getPersistentState() - Method in class core.Player
Filler for now
getPieceMap() - Method in class rules.GameState
 
getPieces() - Method in class rules.Board
 
getPieces() - Method in class rules.GameState
 
getPlayerByColor(Color) - Method in class core.Game
A mapping from colors to players
getPlayers() - Method in class core.Game
Gives an immutable list of the players, with first player first
getPowerupString() - Method in class ui.GameSettings
 
getPreferredSize() - Method in class ui.SquarePanel
The SquarePanel's default size is 80x80 pixels--big enough to fit the provided piece images.
getSupportedRulesets() - Method in class ai.AIFactory
See http://antichess.mit.edu:8080/core/index.html
getTable(Object) - Method in class ai.LookupTable
Get the value (probably) associated with an object, or null.
getTime() - Method in class ui.Stopwatch
Returns the amount of time left on the Stopwatch (or zero, if that time is less than zero).
getTimeLeftForPlayer(Player) - Method in class core.Game
A mapping from a player to the time left for that player
getTo() - Method in class core.Move
 
getValue() - Method in class ai.Variation
 
getWhiteTime() - Method in class ui.GameSettings
 
getWhiteWatch() - Method in class ui.TimerBox
Returns the Stopwatch object keeping track of white's time left.
getWinner() - Method in class core.Game
Gives the winner if there is one.
getWinner() - Method in class rules.GameState
 
getWinReason() - Method in class core.Game
Gives the reason for winning if there is one.
getX() - Method in class core.Position
 
getXML() - Method in class core.Game
Returns the XML for the game as a string.
getY() - Method in class core.Position
 
goodSum - Variable in class rules.StraightPiece
 
GraphicUI - Class in ui
 
GraphicUI() - Constructor for class ui.GraphicUI
Constructor.

H

hashCode() - Method in class core.Move
 
hashCode() - Method in class core.Piece
This should be unique for different pieces or different colors.
hashCode() - Method in class core.Position
 
hashCode() - Method in class rules.Bishop
 
hashCode() - Method in class rules.Destroy
 
hashCode() - Method in class rules.Empty
 
hashCode() - Method in class rules.GameState
 
hashCode() - Method in class rules.King
 
hashCode() - Method in class rules.Knight
 
hashCode() - Method in class rules.Pawn
 
hashCode() - Method in class rules.Queen
 
hashCode() - Method in class rules.Rook
 
hashCode() - Method in class rules.Spawn
 
hashCode() - Method in class rules.Upgrade
 
Heuristic - Interface in ai
The Heuristic evaluates a GameState, and returns an evaluation of the current player's chances of winning; higher is better.
heuristic(GameState) - Method in interface ai.Heuristic
 
heuristic(GameState) - Method in class ai.NegativePieceHeuristic
 
heuristic(GameState) - Method in class ai.PawnWeightedHeuristic
 
heuristic(GameState) - Method in class ai.PawnWeightedPieceHeuristic
 
heuristic(GameState) - Method in class ai.PieceHeuristic
 
heuristic(GameState) - Method in class ai.ScaledPieceHeuristic
 
HumanPlayer - Class in core
A stub class to identify the human players (for ui's)
HumanPlayer(Color) - Constructor for class core.HumanPlayer
 
humanReadableString() - Method in enum core.GameOver
 

I

incrementAndPrintCounter(String) - Static method in class other.Debug
 
incrementCounter(String) - Static method in class other.Debug
 
interactiveLoop() - Method in class ui.TextUI
The interactive loop that drives the text interface.
invalidState() - Method in class rules.GameState
Is the current state invalid, by the opposite color being in check?
isBlackHuman() - Method in class ui.GameSettings
 
isLegal(Move) - Method in class rules.GameState
 
ISOLATED_WEIGHT - Static variable in class ai.NegativePieceHeuristic
 
isPass() - Method in class core.Move
 
isThreatened(Position, Color) - Method in class rules.GameState
Does a color threaten a position? (occupying does not count).
isValid(int, int) - Static method in class core.Position
 
isValid() - Method in class core.Position
 
isWhiteHuman() - Method in class ui.GameSettings
 

K

King - Class in rules
King piece
King(Color, int) - Constructor for class rules.King
 
kingPosition(Color) - Method in class rules.Board
 
Knight - Class in rules
Knight piece.
Knight(Color, int) - Constructor for class rules.Knight
 

L

legalMoves() - Method in class rules.GameState
 
loadGame(Player, Player, File) - Static method in class core.Game
Loads a game given an xml file and the initial players.
loadGame(Player, Player, String) - Static method in class core.Game
Loads a game given an xml string and the initial players.
log(Object) - Static method in class other.Debug
 
LookupTable - Class in ai
The LookupTable represents an efficient hash table to Variations with two properties that make a regular HashMap unsuitable: - The LookupTable uses bounded memory, choosing to replace old cells rather than expand.
LookupTable() - Constructor for class ai.LookupTable
 

M

main(String[]) - Static method in class other.TimeProfiler
 
main(String[]) - Static method in class other.Util
 
main(String[]) - Static method in class test.AIFight
 
main(String[]) - Static method in class test.BoardPanelChecker
 
main(String[]) - Static method in class test.DialogChecker
 
main(String[]) - Static method in class test.SquarePanelChecker
 
main(String[]) - Static method in class ui.GraphicUI
 
main(String[]) - Static method in class ui.TextUI
This main method creates a new TextUI object and begins its interactive loop.
makeMove(Move) - Method in class core.Game
Makes a move (if it is valid), also saving it the move history (if it is not a pass).
makeMove(Move) - Method in class rules.GameState
Make a move
mapToString(Map<Position, Piece>) - Static method in class core.PowerupHelper
 
merge(Iterator<String>) - Static method in class other.Util
 
mouseClicked(MouseEvent) - Method in class ui.GraphicUI
Called when the user clicks on the BoardPanel.
mouseEntered(MouseEvent) - Method in class ui.GraphicUI
 
mouseExited(MouseEvent) - Method in class ui.GraphicUI
Leaving the BoardPanel means cancelling a "click" in progress.
mousePressed(MouseEvent) - Method in class ui.GraphicUI
 
mouseReleased(MouseEvent) - Method in class ui.GraphicUI
 
Move - Class in core
A Move represents a single player's move on a board.
Move(Position, Position) - Constructor for class core.Move
 
Move() - Constructor for class core.Move
Construct the pass move.
moveCandidates(GameState, Position) - Method in class core.Piece
 
moveCandidates(GameState, Position) - Method in class rules.King
 
moveCandidates(GameState, Position) - Method in class rules.Knight
 
moveCandidates(GameState, Position) - Method in class rules.NoneSquare
Empty instances cannot move
moveCandidates(GameState, Position) - Method in class rules.Pawn
 
moveCandidates(GameState, Position) - Method in class rules.StraightPiece
 

N

NegativePieceHeuristic - Class in ai
The PieceHeuristic maximizes the number of pieces controlled.
NegativePieceHeuristic() - Constructor for class ai.NegativePieceHeuristic
 
NewGameDialog - Class in ui
 
newPiece(Piece, int) - Static method in class rules.PieceFactory
Copy a piece, with a new lastMove.
newPiece(Piece) - Static method in class rules.PieceFactory
 
NoneSquare - Class in rules
A powerup or empty
NoneSquare() - Constructor for class rules.NoneSquare
Constructs a new Empty instance

O

OptimizingAlphaBetaPlayer - Class in ai
An ai player that uses alpha-beta pruning for some heuristic.
OptimizingAlphaBetaPlayer(Color, Heuristic) - Constructor for class ai.OptimizingAlphaBetaPlayer
Creates a new OptimizingAlphaBetaPlayer player of the given color
OptimizingAlphaBetaPlayer(Color, Heuristic, int, PrintStream, Map<Position, Piece>) - Constructor for class ai.OptimizingAlphaBetaPlayer
Creates a new OptimizingAlphaBetaPlayer player of the given color
other - package other
 
otherColor() - Method in enum core.Color
 

P

paintComponent(Graphics) - Method in class ui.SquarePanel
Draws the square
parseableMove(String) - Static method in class core.Move
 
Pawn - Class in rules
Pawn piece.
Pawn(Color, int) - Constructor for class rules.Pawn
 
PAWN_WEIGHT - Variable in class ai.PawnWeightedPieceHeuristic
 
PawnWeightedHeuristic - Class in ai
The PawnWeightedHeuristic computes a bunch of values to consider, then ignores most of them because they don't actually help.
PawnWeightedHeuristic() - Constructor for class ai.PawnWeightedHeuristic
 
PawnWeightedPieceHeuristic - Class in ai
The PawnWeightedHeuristic computes a bunch of values to consider, then ignores most of them because they don't actually help.
PawnWeightedPieceHeuristic() - Constructor for class ai.PawnWeightedPieceHeuristic
 
PawnWeightedPieceHeuristic(int, int, int, int) - Constructor for class ai.PawnWeightedPieceHeuristic
 
Piece - Class in core
A Piece represents a state of the board.
Piece(Color, int) - Constructor for class core.Piece
Constructs a new piece.
PIECE_WEIGHT - Variable in class ai.PawnWeightedPieceHeuristic
 
PieceFactory - Class in rules
Go from a piece name to a piece instance.
PieceFactory() - Constructor for class rules.PieceFactory
 
pieceFromChar(char) - Static method in class rules.PieceFactory
Go from a short name to a piece, lowercase = black.
pieceFromChar(char, int) - Static method in class rules.PieceFactory
Go from a short name to a piece, lowercase = black.
pieceFromString(String, Color) - Static method in class rules.PieceFactory
Go from a long name to a piece.
pieceFromString(String, Color, int) - Static method in class rules.PieceFactory
Go from a long name to a piece.
PieceHeuristic - Class in ai
The PieceHeuristic simply minimizes the number of piece controlled.
PieceHeuristic() - Constructor for class ai.PieceHeuristic
 
pieceString() - Method in class core.Piece
 
pieceString() - Method in class rules.Bishop
 
pieceString() - Method in class rules.Destroy
 
pieceString() - Method in class rules.Empty
 
pieceString() - Method in class rules.King
 
pieceString() - Method in class rules.Knight
 
pieceString() - Method in class rules.Pawn
 
pieceString() - Method in class rules.Queen
 
pieceString() - Method in class rules.Rook
 
pieceString() - Method in class rules.Spawn
 
pieceString() - Method in class rules.Upgrade
 
piecesWinner() - Method in class rules.GameState
 
Player - Class in core
Represents an abstract player that can make moves.
Player(Color) - Constructor for class core.Player
Creates a new player of that color
pos - Static variable in class core.Position
 
Position - Class in core
Position on the board.
postMove(GameState, Map<Position, Piece>, Position) - Method in class core.Piece
Apply the modifications to a move map for a move onto this square completes.
postMove(GameState, Map<Position, Piece>, Position) - Method in class rules.Destroy
 
postMove(GameState, Map<Position, Piece>, Position) - Method in class rules.Spawn
 
postMove(GameState, Map<Position, Piece>, Position) - Method in class rules.Upgrade
 
PowerupHelper - Class in core
 
PowerupHelper() - Constructor for class core.PowerupHelper
 
print(Object) - Static method in class other.Debug
 
print(int) - Static method in class other.Debug
 
print(Object, int) - Static method in class other.Debug
 
printCounter(String) - Static method in class other.Debug
 
println(Object) - Static method in class other.Debug
 
PROPERTY_BLACK_NAME - Static variable in class ai.AIFactory
 
PROPERTY_INIT_TIME_BLACK - Static variable in class ai.AIFactory
 
PROPERTY_INIT_TIME_WHITE - Static variable in class ai.AIFactory
 
PROPERTY_POWERUP_PLACEMENT - Static variable in class ai.AIFactory
 
PROPERTY_RULE_SET - Static variable in class ai.AIFactory
 
PROPERTY_TIMED_GAME - Static variable in class ai.AIFactory
 
PROPERTY_WHITE_NAME - Static variable in class ai.AIFactory
 
PUSH_WEIGHT - Variable in class ai.PawnWeightedPieceHeuristic
 
put(Position, Piece) - Method in class rules.Board
 
put(int, int, Piece) - Method in class rules.Board
 

Q

Queen - Class in rules
Queen piece.
Queen(Color, int) - Constructor for class rules.Queen
 

R

RandomPlayer - Class in ai
An ai player that makes random moves.
RandomPlayer(Color) - Constructor for class ai.RandomPlayer
Creates a new random player of the given color
randomPowerupString(int) - Static method in class core.PowerupHelper
 
removeStopwatchListener(StopwatchListener) - Method in class ui.Stopwatch
Removes a StopwatchListener from this
requestLoadGame(File) - Method in class ui.GameThread
This method is called by the GUI when the user requests to load a game.
requestNewGame() - Method in class ui.GameThread
This method is called by the GUI when the user requests a new game.
reversibleMakeMove(Map<Position, Piece>, boolean) - Method in class rules.GameState
Modify the AntichessGameState to apply a move, and turn the map into its inverse.
Rook - Class in rules
Rook piece.
Rook(Color, int) - Constructor for class rules.Rook
 
rules - package rules
 
run() - Method in class ai.OptimizingAlphaBetaPlayer
Start a new threadSearch on the current state.
run() - Method in class ui.GameThread
Sets up a default game, and then runs the game loop
run() - Method in class ui.Stopwatch
Informs all of this Stopwatch's listeners that its time is decreasing
runGame() - Method in class test.AIFight
 

S

saveStringToFile(String, String) - Static method in class other.Util
 
ScaledPieceHeuristic - Class in ai
The ScaledPieceHeuristic minimizes the fraction of pieces controlled.
ScaledPieceHeuristic() - Constructor for class ai.ScaledPieceHeuristic
 
serialVersionUID - Static variable in exception core.GameLoadException
 
serialVersionUID - Static variable in class rules.Board
 
setArtDirectory(String) - Static method in class ui.SquarePanel
 
setCanBeTaken(boolean) - Method in class ui.SquarePanel
Sets this square's capturability status
setCanMove(boolean) - Method in class ui.SquarePanel
Sets this square's mobility status
setPiece(Piece) - Method in class ui.SquarePanel
Sets the piece currently on this square
setSelected(boolean) - Method in class ui.SquarePanel
Sets this square's selection status
setSelectedPanel(Position) - Method in class ui.BoardPanel
Sets the selected panel to the one at the position in the argument.
setTime(Player, int) - Method in class core.Game
Sets the time for a player.
setUp() - Method in class test.GameStateTest
 
setUp() - Method in class test.TextUITestScript
 
setWatches(int, int) - Method in class ui.TimerBox
Resets the TimerBox's Stopwatches.
showDialog() - Static method in class ui.NewGameDialog
 
Spawn - Class in rules
Empty piece.
Spawn() - Constructor for class rules.Spawn
Constructs a new Destroy instance
SquarePanel - Class in ui
 
SquarePanel(Color) - Constructor for class ui.SquarePanel
 
SquarePanelChecker - Class in test
 
SquarePanelChecker() - Constructor for class test.SquarePanelChecker
 
start() - Method in class other.TimeProfiler
Starts the timer
start() - Method in class ui.Stopwatch
Starts the timer, if it was not already running.
startingBoard - Static variable in class rules.Board
The initial board string for a game.
stats() - Method in class other.TimeProfiler
returns a formatted String with stats on slowest start-stop time, fastest start-stop time, average time, total records, and aggregate time
stop() - Method in class other.TimeProfiler
Stops the timer and records the data.
stop() - Method in class ui.Stopwatch
Stops the timer, if it was not already stopped.
Stopwatch - Class in ui
 
Stopwatch(long) - Constructor for class ui.Stopwatch
 
StopwatchListener - Interface in ui
A StopwatchListener listens for time updates from a stopwatch.
StraightPiece - Class in rules
Common superclass of bishop, rook, and queen (which all have similar movement).
StraightPiece(Color, int, boolean, boolean) - Constructor for class rules.StraightPiece
 
stringToMap(String) - Static method in class core.PowerupHelper
 
subtractTimeLeftForPlayer(Player, int) - Method in class core.Game
Subtracts amount from current time of the player (calls setTime, so updated winner if needed).
suggestMove(Move) - Method in class ui.GameThread
This method is called by the GUI when the user tries to make a move.
suite() - Static method in class test.TextUITestScript
 
switchClockTo(Color) - Method in class ui.TimerBox
Switches the clock to the specified color.

T

test - package test
 
testCastle() - Method in class test.GameStateTest
Check that you can castle when not passing through check, only if neither rook nor king has moved before.
testEnPassant() - Method in class test.GameStateTest
Test that en passant works, but expires.
testForcing() - Method in class test.GameStateTest
Test that the ability to capture forces the move.
testGetMoveNum() - Method in class test.GameStateTest
Check that the move number increases as desired, and decreases when reverting a move.
testInvalidState() - Method in class test.GameStateTest
Check that the GameState can find when the wrong player is in check.
testIsLegal() - Method in class test.GameStateTest
Test that isLegal works.
testLegalMoves() - Method in class test.GameStateTest
Test that legalMoves doesn't modify the state, and is correct for an easy case.
testLegalValues() - Method in class test.GameTest
Tests basic legal constructor values.
testLegalValuesLoad() - Method in class test.GameTest
Tests that an unplayed loaded game fulfills the same requirements as a regular new game.
testLegalValuesSaveLoad() - Method in class test.GameTest
Tests that an unplayed loaded game fulfills the same requirements as a regular new game, even after saving and reloading.
testNoMoves() - Method in class test.GameStateTest
Test when you are forced to pass.
testPowerups() - Method in class test.GameStateTest
Test that pawns promote at the end.
testQueening() - Method in class test.GameStateTest
Test that pawns promote at the end.
testSaveLoadAdditionalStateGame() - Method in class test.GameTest
Tests loading and saving game with maintains additional state (like whether someone has castled).
testSaveLoadDrawGame() - Method in class test.GameTest
Tests loading and saving game with passes.
testSaveLoadFinishedGame() - Method in class test.GameTest
Tests loading and saving finished games, and makes sure they have the correct end state.
testSaveLoadIncompleteGame() - Method in class test.GameTest
Tests an incomplete game (for completeness of testing output).
testSaveLoadPowerups() - Method in class test.GameTest
Tests loading and saving game with maintains additional state (like whether someone has castled).
testSaveLoadSimpleGame() - Method in class test.GameTest
Tests
testScriptFile() - Method in class test.TextUITestScript
 
testTimed() - Method in class test.GameTest
Tests that time updates correctly, and that an exception is thrown if you move after running out of time.
testToString() - Method in class test.GameStateTest
Test tostring after a move
testUntimed() - Method in class test.GameTest
Tests that untimed games don't update time, and it returns -1.
testWinner() - Method in class test.GameStateTest
Test the game's detection of the winner, in the various cases.
TextUI - Class in ui
 
TextUI() - Constructor for class ui.TextUI
 
TextUI(BufferedReader, PrintStream) - Constructor for class ui.TextUI
 
TextUITestScript - Class in test
Script unit tests for the TextUI class.
TextUITestScript(File) - Constructor for class test.TextUITestScript
 
threatens(GameState, Color, Position) - Static method in class rules.King
 
threatens(GameState, Color, Position) - Static method in class rules.Knight
 
threatens(GameState, Position, Position) - Method in class rules.NoneSquare
Empty instances cannot threaten
threatens(GameState, Color, Position) - Static method in class rules.Pawn
 
threatens(GameState, Color, Position) - Static method in class rules.StraightPiece
 
timeChanged(long, Stopwatch) - Method in class ui.GameThread
Triggered by Stopwatch events.
timeChanged(long, Stopwatch) - Method in interface ui.StopwatchListener
tells how much time is left on the stopwatch, in milliseconds
TimeProfiler - Class in other
TimeProfiler objects allow a programmer to profile the running time of his or her code.
TimeProfiler() - Constructor for class other.TimeProfiler
 
TimeProfiler(String) - Constructor for class other.TimeProfiler
 
TimerBox - Class in ui
 
TimerBox(GameThread) - Constructor for class ui.TimerBox
Constructor.
toMap(GameState) - Method in class core.Move
 
toString() - Method in enum core.Color
 
toString() - Method in enum core.GameOver
 
toString() - Method in class core.Move
 
toString() - Method in class core.Piece
 
toString() - Method in class core.Position
 
toString() - Method in class other.TimeProfiler
 
toString() - Method in class rules.Board
Outputs a string representation of a board.
toString() - Method in class rules.GameState
 

U

ui - package ui
 
update(Object, Variation) - Method in class ai.LookupTable
Set the Variation associated with an object.
update(Game) - Method in class ai.OptimizingAlphaBetaPlayer
Has the player make a series of moves.
update(Game) - Method in class ai.RandomPlayer
Has the player make a series of moves.
update(Game) - Method in class core.HumanPlayer
 
update(Game) - Method in class core.Player
Has the player make a series of moves.
updateBoard(GameState) - Method in class ui.BoardPanel
Updates this component to reflect the board in the argument
updateBoard() - Method in class ui.GraphicUI
Looks up the GameState and updates the display accordingly.
updateHistory(Move, boolean) - Method in class ui.GraphicUI
Called by the main thread when it makes a move.
updateTime(long, Color) - Method in class ui.GraphicUI
Called by the main thread.
Upgrade - Class in rules
Empty piece.
Upgrade() - Constructor for class rules.Upgrade
Constructs a new Destroy instance
Util - Class in other
 
Util() - Constructor for class other.Util
 

V

validPosition(String) - Static method in class core.Position
 
valueOf(String) - Static method in enum core.Color
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum core.GameOver
Returns the enum constant of this type with the specified name.
values() - Static method in enum core.Color
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum core.GameOver
Returns an array containing the constants of this enum type, in the order they're declared.
Variation - Class in ai
A Variation represents the sequence of optimal plays from a game state.
Variation(int) - Constructor for class ai.Variation
 

W

windowActivated(WindowEvent) - Method in class ui.NewGameDialog
 
windowClosed(WindowEvent) - Method in class ui.NewGameDialog
 
windowClosing(WindowEvent) - Method in class ui.NewGameDialog
 
windowDeactivated(WindowEvent) - Method in class ui.NewGameDialog
 
windowDeiconified(WindowEvent) - Method in class ui.NewGameDialog
 
windowIconified(WindowEvent) - Method in class ui.NewGameDialog
 
windowOpened(WindowEvent) - Method in class ui.NewGameDialog
 

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