Index

A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

add(E) - Method in class edu.uky.ai.util.ImmutableList
Returns a new list with the given element added as the first element.
add(Object, Object) - Static method in class edu.uky.ai.util.Utilities
Adds two number objects together.
add(T, T) - Method in class edu.uky.ai.util.DirectedAcyclicGraph
Returns a new DAG with a new edge from 'before' to 'after.' If either node does not exist, they will exist in the new DAG.
addAverageColumn() - Method in class edu.uky.ai.util.Table
Returns a new table with an additional column whose cells contain the averages of each row.
addAverageColumn(Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table with an additional column whose cells contain the averages of each row.
addAverageRow() - Method in class edu.uky.ai.util.Table
Returns a new table with an additional row whose cells contain the averages of each column.
addAverageRow(Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table with an additional row whose cells contain the averages of each column.
addColumn(Object) - Method in class edu.uky.ai.util.Table
Returns a new table with an addition column with the given label.
addRow(Object) - Method in class edu.uky.ai.util.Table
Returns a new table with an addition row with the given label.
addTotalColumn() - Method in class edu.uky.ai.util.Table
Returns a new table with an additional column whose cells contain the totals of each row.
addTotalColumn(Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table with an additional column whose cells contain the totals of each row.
addTotalRow() - Method in class edu.uky.ai.util.Table
Returns a new table with an additional row whose cells contain the totals of each column.
addTotalRow(Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table with an additional row whose cells contain the totals of each column.
Agent - Class in edu.uky.ai.chess
The abstract parent class of all chess playing agents.
Agent(String) - Constructor for class edu.uky.ai.chess.Agent
Constructs a new agent with the given name.
append(String) - Method in class edu.uky.ai.chess.gui.Console
Adds text to the transcript.
Arguments - Class in edu.uky.ai.util
A more convenient representation of command line argument based on keys and values.
Arguments(String[]) - Constructor for class edu.uky.ai.util.Arguments
Constructs a new group of argument from an array of strings.
ArrayIterable<E> - Class in edu.uky.ai.util
An object that allows an array to be treated as Iterable.
ArrayIterable(E[]) - Constructor for class edu.uky.ai.util.ArrayIterable
Constructs a new iterable for the given array.
ArrayIterator<E> - Class in edu.uky.ai.util
Iterates through all the elements in an array.
ArrayIterator(E[]) - Constructor for class edu.uky.ai.util.ArrayIterator
Constructs a new array iterator for a given array starting at a given index.
ArrayIterator(E[], int) - Constructor for class edu.uky.ai.util.ArrayIterator
Constructs a new array iterator for a given array starting at a given index.
asList() - Method in class edu.uky.ai.io.Node
Casts the node to a list.
asList(int, int) - Method in class edu.uky.ai.io.Node
Casts the node to a list of a certain length.
asSymbol() - Method in class edu.uky.ai.io.Node
Casts this node to a symbol.
asSymbol(String) - Method in class edu.uky.ai.io.Node
Casts this node to a specific symbol.
average() - Method in class edu.uky.ai.util.Table.Sequence
Returns the average of the numeric elements of this sequence (non-numeric values are ignored).
average(Function<Object, ?>) - Method in class edu.uky.ai.util.Table.Sequence
Returns the average of the numeric elements of this sequence (non-numeric values are ignored).

B

banner - Variable in class edu.uky.ai.chess.gui.ChessDisplay
The text banner above the board
Banner - Class in edu.uky.ai.chess.gui
A short text banner that appears above the chess board.
Banner() - Constructor for class edu.uky.ai.chess.gui.Banner
Constructs a new banner.
Bishop - Class in edu.uky.ai.chess.state
Represents the bishop chess piece.
Bishop(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Bishop
Constructs a new bishop for the given player at the given location.
black - Variable in class edu.uky.ai.chess.Game
The black player
BLACK - Enum constant in enum edu.uky.ai.chess.state.Player
The black player
BLACK_WINS - Enum constant in enum edu.uky.ai.chess.state.Outcome
Black checkmates White
board - Variable in class edu.uky.ai.chess.gui.ChessDisplay
The board GUI
board - Variable in class edu.uky.ai.chess.state.State
The current configuration of the board
Board - Class in edu.uky.ai.chess.gui
A graphical representation of a chess board.
Board - Class in edu.uky.ai.chess.state
Represents a chess board and the pieces on it.
Board() - Constructor for class edu.uky.ai.chess.gui.Board
Constructs a new board in the starting configuration for a chess game.
budget - Variable in class edu.uky.ai.chess.state.State
The search budget, which constrains how many more states may be generated and how much time remains to make a decision

C

cells - Variable in class edu.uky.ai.util.Table
The table's cells
cells - Variable in class edu.uky.ai.util.Table.Sequence
The cells that make up this row or column
check - Variable in class edu.uky.ai.chess.state.State
Indicates whether or not the player whose turn it is to move is in check
checkTime() - Method in class edu.uky.ai.SearchBudget
When this method is called, it will throw an exception if the maximum amount of time has passed, otherwise it will do nothing.
ChessDisplay - Class in edu.uky.ai.chess.gui
A high-level container representing the game's current state, which can displayed either on the console as text or on the screen as a GUI.
ChessFrame - Class in edu.uky.ai.chess.gui
An instance of ChessDisplay that shows the game in a JFrame.
choose(State, int, long) - Method in class edu.uky.ai.chess.Agent
Given the current state of a chess game, this method chooses the next move for current player.
chooseMove(State) - Method in class edu.uky.ai.chess.Agent
Given the current State, this method chooses a next move for the current player.
clone() - Method in class edu.uky.ai.chess.state.Board
 
clone() - Method in class edu.uky.ai.io.Parser
 
clone() - Method in class edu.uky.ai.util.Table
 
close() - Method in class edu.uky.ai.io.DummyWriter
 
column - Variable in class edu.uky.ai.util.Table.Cell
The column this cell belongs to
columns - Variable in class edu.uky.ai.util.Table
The table's columns
console - Variable in class edu.uky.ai.chess.gui.ChessDisplay
The text console that displayed the game transcript
Console - Class in edu.uky.ai.chess.gui
A simple text console to display a transcript of the game.
Console(int) - Constructor for class edu.uky.ai.chess.gui.Console
Constructs a new, empty console.
contains(Piece) - Method in class edu.uky.ai.chess.state.Board
Tests if a piece of this same type and for the same player exists at the the given piece's file and rank.
contains(Object) - Method in class edu.uky.ai.util.ImmutableArray
Checks if the array contains a given element.
contains(Object) - Method in class edu.uky.ai.util.ImmutableList
Indicates whether or not the list contains a given element.
containsKey(String) - Method in class edu.uky.ai.util.Arguments
Checks whether a given key is present in the arguments.
countDescendants() - Method in class edu.uky.ai.chess.state.State
Returns the number of descendant states which claim this state as an ancestor.
countPieces() - Method in class edu.uky.ai.chess.state.Board
Returns the number of pieces on the board for both players.
countPieces(Player) - Method in class edu.uky.ai.chess.state.Board
Returns the number of pieces on the board for a given player.

D

DirectedAcyclicGraph<T> - Class in edu.uky.ai.util
A directed acyclic graph (or DAG) whose nodes are of a given type.
DirectedAcyclicGraph() - Constructor for class edu.uky.ai.util.DirectedAcyclicGraph
Constructs a DAG with no nodes.
DirectedEdge<T> - Class in edu.uky.ai.util
Represents a single directed egde in a DirectedAcyclicGraph.
divide(Object, Object) - Static method in class edu.uky.ai.util.Utilities
Divides the first number object by the second.
DRAW - Enum constant in enum edu.uky.ai.chess.state.Outcome
The game is a draw or a stalemate, with no winner
DummyOutputStream - Class in edu.uky.ai.io
An implementation of OutputStream that does nothing.
DummyOutputStream() - Constructor for class edu.uky.ai.io.DummyOutputStream
 
DummyWriter - Class in edu.uky.ai.io
An implementation of Writer that does nothing.
DummyWriter() - Constructor for class edu.uky.ai.io.DummyWriter
 

E

edges() - Method in class edu.uky.ai.util.DirectedAcyclicGraph
Returns an Iterable of all the edges in this graph.
edu.uky.ai - package edu.uky.ai
Contains various Artificial Intelligence algorithms and testing environments.
edu.uky.ai.chess - package edu.uky.ai.chess
Contains resources for representing, displaying, and playing chess.
edu.uky.ai.chess.gui - package edu.uky.ai.chess.gui
Graphical User Interface elements for displaying a chess game as text as on screen.
edu.uky.ai.chess.state - package edu.uky.ai.chess.state
Data structures for representing the state of a chess game and for searching the space of possible next moves.
edu.uky.ai.io - package edu.uky.ai.io
Contains utilities for reading and writing AI problems and the algorithms that solve them.
edu.uky.ai.util - package edu.uky.ai.util
Contains assorted helpful objects.
elements - Variable in class edu.uky.ai.util.Tuple
The array of objects in the tuple
equals(Object) - Method in class edu.uky.ai.chess.state.Board
 
equals(Object) - Method in class edu.uky.ai.chess.state.Piece
 
equals(Object) - Method in class edu.uky.ai.util.ImmutableArray
 
equals(Object) - Method in class edu.uky.ai.util.ImmutableList
 
equals(Object) - Method in class edu.uky.ai.util.Tuple
 

F

file - Variable in class edu.uky.ai.chess.state.Piece
The piece's file (column) on the board (A to H), as an integer (0 to 7, where 0=A, 1=B, etc.)
file(int) - Static method in class edu.uky.ai.chess.state.PGN
Returns the file letter mapped to a given index.
first - Variable in class edu.uky.ai.io.List
The first elerment in this list
first - Variable in class edu.uky.ai.util.ImmutableList
The first (most recently added) element in the list
flush() - Method in class edu.uky.ai.io.DummyWriter
 
forEach(Consumer<? super E>) - Method in class edu.uky.ai.util.ImmutableArray
 
FormatException - Exception in edu.uky.ai.io
A format exception is thrown when the input to a Parser is improperly formatted.
FormatException(String) - Constructor for exception edu.uky.ai.io.FormatException
Constructs a new format exception with the given message.

G

game(State) - Static method in class edu.uky.ai.chess.state.PGN
Returns the PGN text describing the game up to the point represented by a given state object.
Game - Class in edu.uky.ai.chess
Represents a single chess game between two Agents.
Game(Agent, Agent, int, long) - Constructor for class edu.uky.ai.chess.Game
Constructs a new game between the given white and black Agents.
get(int) - Method in class edu.uky.ai.util.ImmutableArray
Returns the element at a given index.
getBlackMoves() - Method in class edu.uky.ai.chess.Game
Returns the number of moves made so far by black.
getBlackStates() - Method in class edu.uky.ai.chess.Game
Returns the number of States generated so far by black.
getCell(Object, Object) - Method in class edu.uky.ai.util.Table
Returns the cell at the interaction of the row with the given label and and the column with the given label
getColumn(Object) - Method in class edu.uky.ai.util.Table
Returns the column with the given label.
getComponentType() - Method in class edu.uky.ai.util.ImmutableArray
Returns the array's component type.
getDefined(String, Class<E>) - Method in class edu.uky.ai.io.Parser
Returns the most recently defined object whose names matches the given name and which is of a given type.
getFileName(File) - Static method in class edu.uky.ai.util.Utilities
Returns the name of a file (with no preceding URL information and no trailing file extensions).
getInstance() - Static method in class edu.uky.ai.chess.gui.ChessDisplay
Returns the singleton instance of of this class.
getKing(Player) - Method in class edu.uky.ai.chess.state.Board
Returns the King for the given player.
getNewLocation(Board, Board, Piece) - Static method in class edu.uky.ai.chess.state.PGN
Given the state of a chess board before and after a move and a piece to track, this method returns the piece at the location it occupied before the move.
getOperations() - Method in class edu.uky.ai.SearchBudget
Returns the number of operations executed so far.
getParser(Class<E>) - Method in class edu.uky.ai.io.Parser
Returns the @{link ObjectParser} responsible for parsing objects of the given type.
getPieceAt(int, int) - Method in class edu.uky.ai.chess.state.Board
Returns the piece at a given location.
getRemainingOperations() - Method in class edu.uky.ai.SearchBudget
Returns the number of operations that may still be executed.
getRemainingTime() - Method in class edu.uky.ai.SearchBudget
Returns the amount of time remaining before time is up.
getRow(Object) - Method in class edu.uky.ai.util.Table
Returns the row with the given label.
getState() - Method in class edu.uky.ai.chess.gui.Board
Returns the current game state that is being visualized.
getTime() - Method in class edu.uky.ai.SearchBudget
Returns the amount of time spent so far.
getValue(String) - Method in class edu.uky.ai.util.Arguments
Returns the value immediately after a given key.
getValues(String) - Method in class edu.uky.ai.util.Arguments
Returns the values (0, 1, or many) immediately after a given key.
getWhiteMoves() - Method in class edu.uky.ai.chess.Game
Returns the number of moves made so far by white.
getWhiteStates() - Method in class edu.uky.ai.chess.Game
Returns the number of States generated so far by white.
getWinner() - Method in class edu.uky.ai.chess.Game
Returns the Agent who won the game.
groups - Variable in class edu.uky.ai.util.Arguments
Arguments, divided into groups.

H

hasBeenExhausted() - Method in class edu.uky.ai.SearchBudget
Returns true if there are no more operations or time remaining.
hashCode() - Method in class edu.uky.ai.chess.state.Board
 
hashCode() - Method in class edu.uky.ai.chess.state.Piece
 
hashCode() - Method in class edu.uky.ai.util.ImmutableArray
 
hashCode() - Method in class edu.uky.ai.util.ImmutableList
 
hashCode() - Method in class edu.uky.ai.util.Table.Cell
 
hashCode() - Method in class edu.uky.ai.util.Table.Sequence
 
hashCode() - Method in class edu.uky.ai.util.Tuple
 
hasMoved(Piece) - Method in class edu.uky.ai.chess.state.Board
Tests whether or not a given piece has moved during the history of the game.
hasNext() - Method in class edu.uky.ai.util.ArrayIterator
 
head - Variable in class edu.uky.ai.util.DirectedEdge
The second of 'after' object

I

ImmutableArray<E> - Class in edu.uky.ai.util
An array whose values cannot be modified.
ImmutableArray(E[]) - Constructor for class edu.uky.ai.util.ImmutableArray
Constructs a new immutable array which reflects the given array.
ImmutableArray(Collection<E>, Class<E>) - Constructor for class edu.uky.ai.util.ImmutableArray
Creates an immutable array that contains the elements of a collection.
ImmutableList<E> - Class in edu.uky.ai.util
A list of objects which cannot be modified.
ImmutableList() - Constructor for class edu.uky.ai.util.ImmutableList
Constructs a new, empty immutable list.
ImmutableList(E, ImmutableList<E>) - Constructor for class edu.uky.ai.util.ImmutableList
Constructs a new immutable list with a given first element and a given rest of the list.
incrementOperations() - Method in class edu.uky.ai.SearchBudget
This method is called to signal that one operations has been performed.
indexOf(Object) - Method in class edu.uky.ai.util.ImmutableArray
Returns the index of the first object that is equal to a given object.
INFINITE - Static variable in class edu.uky.ai.SearchBudget
A search budget with no limitations
INFINITE_OPERATIONS - Static variable in class edu.uky.ai.SearchBudget
Represents no limit on the number of operations
INFINITE_TIME - Static variable in class edu.uky.ai.SearchBudget
Represents no limit on the amount of time
isEmpty() - Method in class edu.uky.ai.util.MinPriorityQueue
Tests whether this queue is empty.
isInfinite() - Method in class edu.uky.ai.SearchBudget
Returns whether or not it is possible for this budget to run out.
isList() - Method in class edu.uky.ai.io.Node
Tests if this node is a List.
isList(int, int) - Method in class edu.uky.ai.io.Node
Tests if this node is a List of a certain length.
isSymbol() - Method in class edu.uky.ai.io.Node
Tests if this node is a Symbol.
isSymbol(String) - Method in class edu.uky.ai.io.Node
Tests if this node is a specific Symbol.
isValid(int, int) - Static method in class edu.uky.ai.chess.state.Board
Tests whether or not a given file and rank describe a square on a chess board (i.e.
iterator() - Method in class edu.uky.ai.chess.state.Board
 
iterator() - Method in class edu.uky.ai.util.ArrayIterable
 
iterator() - Method in class edu.uky.ai.util.DirectedAcyclicGraph
 
iterator() - Method in class edu.uky.ai.util.ImmutableArray
 
iterator() - Method in class edu.uky.ai.util.ImmutableList
 
iterator() - Method in class edu.uky.ai.util.Table.Sequence
 

K

King - Class in edu.uky.ai.chess.state
Represents the king chess piece.
King(Player, int, int) - Constructor for class edu.uky.ai.chess.state.King
Constructs a new king for the given player at the given location.
Knight - Class in edu.uky.ai.chess.state
Represents the knight chess piece.
Knight(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Knight
Constructs a new knight for the given player at the given location.

L

label - Variable in class edu.uky.ai.util.Table.Sequence
The row or column lable of this sequence
length - Variable in class edu.uky.ai.io.List
The number of elements in this list
List - Class in edu.uky.ai.io
A list is a collection of 0 to many nodes.
load() - Static method in class edu.uky.ai.chess.gui.Piece
Reads the spritesheet (which should be a file named 'pieces.png' in this package) and breaks it into smaller images, one for each chess piece of each color.
loadFromJARFile(Class<T>, File) - Static method in class edu.uky.ai.util.Utilities
Searches a given JAR file for the definition of a non-abstract class that extends the given class and returns a new instance of that class.
log2(double) - Static method in class edu.uky.ai.util.Utilities
Calculates the base 2 logarithm of a number.

M

main(String[]) - Static method in class edu.uky.ai.chess.Main
Launches the chess program according to its command line arguments.
Main - Class in edu.uky.ai.chess
The entry point for the chess application.
Main() - Constructor for class edu.uky.ai.chess.Main
 
MAJOR_VERSION - Static variable in class edu.uky.ai.chess.Settings
The major version number
MAJOR_VERSION - Static variable in class edu.uky.ai.Settings
Major version number
maxMoves - Variable in class edu.uky.ai.chess.Game
the maximum moves that may be considered when an agent makes a decision
maxTime - Variable in class edu.uky.ai.chess.Game
the maximum milliseconds an agent may take to decide on a move
MINOR_VERSION - Static variable in class edu.uky.ai.chess.Settings
The minor version number
MINOR_VERSION - Static variable in class edu.uky.ai.Settings
Minor version number
MinPriorityQueue<T> - Class in edu.uky.ai.util
A min priority queue which, instead of using a Comparator, allows the user to specify a numeric key that should be associated with the item being added to the queue.
MinPriorityQueue() - Constructor for class edu.uky.ai.util.MinPriorityQueue
Constructs a new, empty min priority queue.
move(int, int) - Method in class edu.uky.ai.chess.state.Bishop
 
move(int, int) - Method in class edu.uky.ai.chess.state.King
 
move(int, int) - Method in class edu.uky.ai.chess.state.Knight
 
move(int, int) - Method in class edu.uky.ai.chess.state.Pawn
 
move(int, int) - Method in class edu.uky.ai.chess.state.Piece
Returns a new piece object of the same type which has been moved a given number of squares on the board.
move(int, int) - Method in class edu.uky.ai.chess.state.Queen
 
move(int, int) - Method in class edu.uky.ai.chess.state.Rook
 
move(State, State) - Static method in class edu.uky.ai.chess.state.PGN
Returns PGN text describing the move which caused the game to transition from one state to another.
MOVE_LIMIT - Static variable in class edu.uky.ai.chess.Settings
The number of States that can be generated during a single decision by a Agent
movesUntilDraw - Variable in class edu.uky.ai.chess.state.State
The number of moves remaining until the game is declared a draw
multiply(Object, Object) - Static method in class edu.uky.ai.util.Utilities
Multiplies two number objects together.

N

name - Variable in class edu.uky.ai.chess.Agent
The agent's name
NAME - Static variable in class edu.uky.ai.chess.Settings
Name of the program
next - Variable in class edu.uky.ai.io.Node
The node that follows this node (i.e.
next() - Method in class edu.uky.ai.chess.state.State
Returns a collection of all the possible next states that could result from the current player making one move in this state.
next() - Method in class edu.uky.ai.util.ArrayIterator
 
next(Piece) - Method in class edu.uky.ai.chess.state.State
Returns a collection of all the possible next states that could result from the current player making one move for a given piece in this state.
next(Piece, Piece) - Method in class edu.uky.ai.chess.state.State
Returns the next state that would result from moving a specific piece to a specific new location.
Node - Class in edu.uky.ai.io
The abstract parent class of List and Symbol.
number - Variable in class edu.uky.ai.util.Table.Sequence
The row or column number of this sequence

O

ObjectParser<E> - Interface in edu.uky.ai.io
An object parser provides a means of translating a node into an object of a specific kind.
OperationsBudgetExceededException - Exception in edu.uky.ai
Indicates that an algorithm has performed more than the maximum allowed number of operations.
other() - Method in enum edu.uky.ai.chess.state.Player
Returns the opposite player.
outcome - Variable in class edu.uky.ai.chess.state.State
Indicates the outcome of the game (or null if the game has not yet ended)
Outcome - Enum in edu.uky.ai.chess.state
Represents the three possible outcomes of a Chess game.

P

paintComponent(Graphics) - Method in class edu.uky.ai.chess.gui.Board
 
parse(Node, Parser) - Method in interface edu.uky.ai.io.ObjectParser
Converts the given node into an object of type E.
parse(Node, Class<? extends E>, Class<? extends E>...) - Method in class edu.uky.ai.io.Parser
Parses a given Node according to the rules defined by this parser and returns the object created.
parse(File) - Static method in class edu.uky.ai.io.Node
Parse a given file as a node.
parse(File, Class<? extends E>) - Method in class edu.uky.ai.io.Parser
Parses a given file according to the rules defined by this parser and returns the object created.
parse(String) - Static method in class edu.uky.ai.io.Node
Parse a given string as a node.
parse(String, Class<? extends E>) - Method in class edu.uky.ai.io.Parser
Parses a given string according to the rules defined by this parser and returns the object created.
Parser - Class in edu.uky.ai.io
Converts text into various kinds of objects based on customizable rules.
Parser() - Constructor for class edu.uky.ai.io.Parser
Constructs a new parser with no rules or defined objects.
Parser(Parser) - Constructor for class edu.uky.ai.io.Parser
Constructs a new parser that is a clone of the given parser.
path(T, T) - Method in class edu.uky.ai.util.DirectedAcyclicGraph
Checks whether or not a path exists from one node to another in this DAG.
Pawn - Class in edu.uky.ai.chess.state
Represents the pawn chess piece.
Pawn(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Pawn
Constructs a new pawn for the given player at the given location.
peek() - Method in class edu.uky.ai.util.MinPriorityQueue
Returns, but does not remove, the object with the lowest key value (i.e.
percent(double) - Static method in class edu.uky.ai.util.Utilities
Converts a decimal number into a string expressing percentage.
PGN - Class in edu.uky.ai.chess.state
Provides methods for generating Portable Game Notation from a sequence of chess states.
PGN() - Constructor for class edu.uky.ai.chess.state.PGN
 
Piece - Class in edu.uky.ai.chess.gui
Represents an individual chess piece as a GUI element.
Piece - Class in edu.uky.ai.chess.state
Represents an individual piece of one color at a given location.
Piece() - Constructor for class edu.uky.ai.chess.gui.Piece
 
Piece(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Piece
Constructs a new piece for a given player at a given location.
pieceAt(int, int) - Method in class edu.uky.ai.chess.state.Board
Tests whether or not there is a piece at the given location.
pieceAt(int, int, Player) - Method in class edu.uky.ai.chess.state.Board
Tests whether or not there is a piece at the given location for a given player.
pieceAt(int, int, Player, Class<? extends Piece>) - Method in class edu.uky.ai.chess.state.Board
Tests whether or not there is a piece of a given type at the given location for a given player
play() - Method in class edu.uky.ai.chess.Game
Plays the game until it is over, updating the GUI after each move.
play(Agent[], int, int, long, Writer) - Static method in class edu.uky.ai.chess.Main
Players a tournament between the given chess agents.
player - Variable in class edu.uky.ai.chess.state.Piece
The player who controls this piece
player - Variable in class edu.uky.ai.chess.state.State
The player whose turn it is to move
Player - Enum in edu.uky.ai.chess.state
Represents the two players of a chess game: white and black.
pop() - Method in class edu.uky.ai.util.MinPriorityQueue
Removes and returns to the object with the lowest key.
previous - Variable in class edu.uky.ai.chess.state.State
The state before the most recent move
push(T, double) - Method in class edu.uky.ai.util.MinPriorityQueue
Associates an object with a given key and adds it to the queue.

Q

Queen - Class in edu.uky.ai.chess.state
Represents the queen chess piece.
Queen(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Queen
Constructs a new queen for the given player at the given location.

R

rank - Variable in class edu.uky.ai.chess.state.Piece
The piece's rank (row) on the board (1 to 8), as an integer (0 to 7, where 0=1, 1=2, etc.)
rank(int) - Static method in class edu.uky.ai.chess.state.PGN
Returns the rank number mapped to a given index.
remove(Object) - Method in class edu.uky.ai.util.ImmutableList
Returns a list with the first occurrence of the given element removed.
request() - Method in class edu.uky.ai.chess.gui.Board
Allows a human user to input a move by clicking on a piece and choosing its destination.
requireDefined(String, Class<E>) - Method in class edu.uky.ai.io.Parser
Like Parser.getDefined(String, Class) but throws an exception if no object is found.
requireFirst() - Method in class edu.uky.ai.io.List
Returns the first element in the list or throws an exception if no such element exists.
requireNext() - Method in class edu.uky.ai.io.Node
Returns the node's next sibling or throws an exception if no such node exists.
rest - Variable in class edu.uky.ai.util.ImmutableList
The other elements in the list (elements 2 to n)
Rook - Class in edu.uky.ai.chess.state
Represents the rook chess piece.
Rook(Player, int, int) - Constructor for class edu.uky.ai.chess.state.Rook
Constructs a new rook for the given player at the given location.
row - Variable in class edu.uky.ai.util.Table.Cell
The row this cell belongs to
rows - Variable in class edu.uky.ai.util.Table
The table's rows

S

SearchBudget - Class in edu.uky.ai
Represents the limitations placed on an algorithm in terms of how many operations it may perform and how long it make take to solve a problem.
SearchBudget(int, long) - Constructor for class edu.uky.ai.SearchBudget
Constructs a new search budget that allows the given number of operations and the give amount of time.
SearchBudgetExceededException - Exception in edu.uky.ai
Indicates that an algorithm has used more than the maximum allowed resources.
setActive(Piece) - Method in class edu.uky.ai.chess.gui.Board
Sets the active piece.
setDefined(String, Object) - Method in class edu.uky.ai.io.Parser
Defines an object by name.
setParser(Class<E>, ObjectParser<? extends E>) - Method in class edu.uky.ai.io.Parser
Sets the ObjectParser for a the given type.
setSearchBudet(SearchBudget) - Method in class edu.uky.ai.chess.state.State
Returns a copy of this state, but with a given search budget.
setState(State) - Method in class edu.uky.ai.chess.gui.Board
Sets the current state to be visualized and updates the screen.
setText(String) - Method in class edu.uky.ai.chess.gui.Banner
Sets the current text of the banner.
Settings - Class in edu.uky.ai.chess
Various settings that control the appearance and computational constraints of the game.
Settings - Class in edu.uky.ai
Settings for all projects.
Settings() - Constructor for class edu.uky.ai.chess.Settings
 
Settings() - Constructor for class edu.uky.ai.Settings
 
size() - Method in class edu.uky.ai.util.ImmutableArray
Returns the number of elements in the array.
size() - Method in class edu.uky.ai.util.ImmutableList
Returns the number of elements in the list.
size() - Method in class edu.uky.ai.util.MinPriorityQueue
Returns the number of objects currently stored in this queue.
sort(Comparator<? super Table.Row>, Comparator<? super Table.Column>) - Method in class edu.uky.ai.util.Table
Returns a new table whose rows and columns have been sorted according to the given comparators.
sortByColumn(Comparator<? super Table.Column>) - Method in class edu.uky.ai.util.Table
Returns a new table whose columns have been sorted according to the given comparator.
sortByRow(Comparator<? super Table.Row>) - Method in class edu.uky.ai.util.Table
Returns a new table whose rows have been sorted according to the given comparator.
square(int, int) - Static method in class edu.uky.ai.chess.state.PGN
Returns the alphanumeric representation of a square on a chess board given its file and rank indices.
State - Class in edu.uky.ai.chess.state
Represents the current state (between moves) of a game of chess.
State() - Constructor for class edu.uky.ai.chess.state.State
Constructs a new state object in the initial configuration of a chess board before a game starts.
subtract(Object, Object) - Static method in class edu.uky.ai.util.Utilities
Subtracts the second number object from the first.
sum() - Method in class edu.uky.ai.util.Table.Sequence
Returns the sum of the numeric elements of this sequence (non-numeric values are ignored).
sum(Function<Object, ?>) - Method in class edu.uky.ai.util.Table.Sequence
Returns the sum of the numeric elements of this sequence (non-numeric values are ignored).
Symbol - Class in edu.uky.ai.io
A symbol is a string of characters.

T

table - Variable in class edu.uky.ai.util.Table.Cell
The table this cell belongs to
table - Variable in class edu.uky.ai.util.Table.Sequence
The table this sequence belongs to
Table - Class in edu.uky.ai.util
Logic for displaying simple 2-dimensional tables of data.
Table(Iterable<?>, Iterable<?>) - Constructor for class edu.uky.ai.util.Table
Constructs a new, empty table with rows and columns that have the given labels.
Table(Object[], Object[]) - Constructor for class edu.uky.ai.util.Table
Constructs a new, empty table with rows and columns that have the given labels.
Table.Cell - Class in edu.uky.ai.util
An individual unit of data in the table.
Table.Column - Class in edu.uky.ai.util
A vertical sequence of cells.
Table.Row - Class in edu.uky.ai.util
A horizontal sequence of cells.
Table.Sequence - Class in edu.uky.ai.util
The abstract parent of Table.Row and Table.Column.
tail - Variable in class edu.uky.ai.util.DirectedEdge
The first or 'before' object
time(long) - Static method in class edu.uky.ai.util.Utilities
Converts a duration in milliseconds into a formatted string expressing showing minutes, seconds, and milliseconds.
TIME_LIMIT - Static variable in class edu.uky.ai.chess.Settings
The number of milliseconds that can pass while a Agent makes a single decision
TimeBudgetExceededException - Exception in edu.uky.ai
Indicates that an algorithm has taken more than the allowed amount of time.
toArray(Iterable<? extends T>, Class<T>) - Static method in class edu.uky.ai.util.Utilities
Efficiently converts any Iterable into an array of its elements.
toHTML() - Method in class edu.uky.ai.util.Table
Returns an HTML representation of this table.
toString() - Method in class edu.uky.ai.chess.Agent
 
toString() - Method in class edu.uky.ai.chess.Game
 
toString() - Method in class edu.uky.ai.chess.state.Bishop
 
toString() - Method in class edu.uky.ai.chess.state.Board
 
toString() - Method in class edu.uky.ai.chess.state.King
 
toString() - Method in class edu.uky.ai.chess.state.Knight
 
toString() - Method in class edu.uky.ai.chess.state.Pawn
 
toString() - Method in class edu.uky.ai.chess.state.Queen
 
toString() - Method in class edu.uky.ai.chess.state.Rook
 
toString() - Method in class edu.uky.ai.chess.state.State
 
toString() - Method in class edu.uky.ai.io.List
 
toString() - Method in class edu.uky.ai.io.Symbol
 
toString() - Method in class edu.uky.ai.SearchBudget
 
toString() - Method in class edu.uky.ai.util.DirectedAcyclicGraph
 
toString() - Method in class edu.uky.ai.util.DirectedEdge
 
toString() - Method in class edu.uky.ai.util.ImmutableArray
 
toString() - Method in class edu.uky.ai.util.Table.Cell
 
toString() - Method in class edu.uky.ai.util.Table.Column
 
toString() - Method in class edu.uky.ai.util.Table.Row
 
toString() - Method in class edu.uky.ai.util.Table
 
toString() - Method in class edu.uky.ai.util.Tuple
 
transform(Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table whose cell values are the results of applying the given function to the values in this table.
transform(Predicate<? super Table.Row>, Predicate<? super Table.Column>) - Method in class edu.uky.ai.util.Table
Returns a new table which only keeps the row and columns of this table that are identified by two predicates.
transform(Predicate<? super Table.Row>, Predicate<? super Table.Column>, Function<Object, ?>) - Method in class edu.uky.ai.util.Table
Returns a new table which only keeps the row and columns of this table that are identified by two predicates and whose cell values are the results of applying the given function to the values in this table.
Tuple - Class in edu.uky.ai.util
A tuple is simply an array of Objects implemented such that two tuples are the same (i.e.
Tuple(int) - Constructor for class edu.uky.ai.util.Tuple
Constructs a tuple of a given size with each element as null.
Tuple(Object...) - Constructor for class edu.uky.ai.util.Tuple
Constructs a tuple from a given set of objects.
turn - Variable in class edu.uky.ai.chess.state.State
The current turn number (starting at 0), where a turn includes one move by both players

U

Utilities - Class in edu.uky.ai.util
Assorted helpful methods.
Utilities() - Constructor for class edu.uky.ai.util.Utilities
 

V

value - Variable in class edu.uky.ai.io.Symbol
The value of the symbol
value - Variable in class edu.uky.ai.util.Table.Cell
The current value of this cell
valueOf(String) - Static method in enum edu.uky.ai.chess.state.Outcome
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.uky.ai.chess.state.Player
Returns the enum constant of this type with the specified name.
values() - Static method in enum edu.uky.ai.chess.state.Outcome
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum edu.uky.ai.chess.state.Player
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION_UID - Static variable in class edu.uky.ai.chess.Settings
A long that encapsulates both Settings.MAJOR_VERSION and Settings.MINOR_VERSION for use as version UID's
VERSION_UID - Static variable in class edu.uky.ai.Settings
A UID number constructed from the major and minor version numbers

W

white - Variable in class edu.uky.ai.chess.Game
The white player
WHITE - Enum constant in enum edu.uky.ai.chess.state.Player
The white player
WHITE_WINS - Enum constant in enum edu.uky.ai.chess.state.Outcome
White checkmates Black
write(char[], int, int) - Method in class edu.uky.ai.io.DummyWriter
 
write(int) - Method in class edu.uky.ai.io.DummyOutputStream
 
A B C D E F G H I K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form