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

A

A_LONG_GAME - Static variable in class com.editev.chess.GameHistory
Number of moves in a long game.
accept(Object) - Method in class com.editev.chess.EnumeratedGame.AcceptLegalMoves
 
accept(Object) - Method in class com.editev.chess.EnumeratedGame.AcceptSquaresOnTheMove
 
acceptLegalMoves - Variable in class com.editev.chess.EnumeratedGame
A Filter that only accepts legal moves for this Game.
acceptSquaresOnTheMove - Variable in class com.editev.chess.EnumeratedGame
A filter that only accepts Locations with pieces that are on-the-move for this game.
allMoves - Variable in class com.editev.chess.GameMoves
Store all the legal next moves from this board position.
append(Board) - Method in class com.editev.chess.Boards
Puts a Board at the end of the list.
append(Move) - Method in class com.editev.chess.Moves
Puts a Move at the end of the list.
applyMove(Move) - Method in class com.editev.chess.Game
apply a Move to the Game -- in other words, to the board and to the game.
applyMove(Move) - Method in class com.editev.chess.GameMoves
Apply a specific move to this Game.
applyMove(Move) - Method in class com.editev.chess.GameHistory
Apply a specific move to this Game and add it to the history!
applyMove(short) - Method in class com.editev.chess.GameHistory
Apply a move by index to this board.
applyMoves(String) - Method in class com.editev.chess.GameHistory
Apply a whole list of moves to this game.
applyMoveToBoard(Move, Board) - Method in class com.editev.chess.piece.Piece
Adjust the board's pieces only.
applyMoveToBoard(Move, Board) - Method in class com.editev.chess.piece.Pawn
Apply the move to the squares of the board.
applyMoveToState(Move, GameState) - Method in class com.editev.chess.piece.Piece
Adjust the board's game, which is everything that isn't the board's squares: handles promotions, e.p., castling rules, 50 move rule.
applyMoveToState(Move, GameState) - Method in class com.editev.chess.piece.Pawn
Change the GameState component of the game for this pawn move -- we need to override this method because we need to store the e.p.
applyMoveToState(Move, GameState) - Method in class com.editev.chess.piece.Rook
If you move a rook, you can no longer castle with that rook -- the GameState must reflect this.

B

baseURL - Variable in class com.editev.chess.GameHTML
The base URL for this servlet.
Bishop - class com.editev.chess.piece.Bishop.
A Bishop has no specific rules attached to it, just a list of moves.
BISHOP - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's Bishop.
BISHOP - Static variable in class com.editev.chess.Chess.White
Piece index for White's Bishop.
Bishop() - Constructor for class com.editev.chess.piece.Bishop
This class is a singleton, so the constructor is private.
BLACK - Static variable in class com.editev.chess.Chess
Black's home rank, also used as an identifier for Black
BLACK - Static variable in class com.editev.chess.Chess.Black
Black's home rank, also used as an identifier for Black
BLACK_PIECE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
Color of a black piece.
BLACK_SQUARE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
Color of a black square.
blackCaptures - Variable in class com.editev.chess.GameHistory
Lists of the pieces captured by Black.
blackStatus - Variable in class com.editev.chess.printer.GamePrinter
Print the status of Black.
Board - class com.editev.chess.Board.
Represent just the Pieces on the 64 Squares of the chess board as byte indices.
Board() - Constructor for class com.editev.chess.Board
 
boardPrinter - Variable in class com.editev.chess.printer.GamePrinter
Print the entire board.
BoardPrinter - class com.editev.chess.printer.BoardPrinter.
Prints the entire board.
BoardPrinter() - Constructor for class com.editev.chess.printer.BoardPrinter
 
Boards - class com.editev.chess.Boards.
A growing, unsynchronized list of Boards.
Boards() - Constructor for class com.editev.chess.Boards
Creates an empty Board with the default capacity.
Boards(int) - Constructor for class com.editev.chess.Boards
Creates an empty Board with the specified capacity.
bodyPrinter - Static variable in class com.editev.chess.printer.PagePrinter
 
BodyPrinter - class com.editev.chess.printer.BodyPrinter.
Prints the HTML body for a chess board.
BodyPrinter() - Constructor for class com.editev.chess.printer.BodyPrinter
 

C

canBeCaptured(byte) - Method in class com.editev.chess.GameState
Can this piece be captured by the player on the move? \
canMove(byte) - Method in class com.editev.chess.GameState
Does this piece belong to the player on-the-move?
CAPTURE_STYLE_TEMPLATE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
A template for CSS styles for captured pieces..
capture(byte, boolean) - Method in class com.editev.chess.GameHistory
Add a piece to the list of captured pieces
capturedPrinter - Variable in class com.editev.chess.printer.StatusPrinter
 
CapturedPrinter - class com.editev.chess.printer.CapturedPrinter.
Prints the array of captured pieces.
CapturedPrinter(boolean) - Constructor for class com.editev.chess.printer.CapturedPrinter
 
captureStyleName(boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
The name of a style for a captured piece.
Chess - class com.editev.chess.Chess.
Constants defining the game of chess.
Chess.Black - class com.editev.chess.Chess.Black.
A set of constants representing Black's pieces.
Chess.Black() - Constructor for class com.editev.chess.Chess.Black
 
Chess.White - class com.editev.chess.Chess.White.
A set of constants representing White's pieces.
Chess.White() - Constructor for class com.editev.chess.Chess.White
 
Chess() - Constructor for class com.editev.chess.Chess
 
ChessServlet - class com.editev.chess.ChessServlet.
This servlet will display any legal game of chess.
ChessServlet() - Constructor for class com.editev.chess.ChessServlet
 
clear() - Method in class com.editev.chess.Boards
Clears the list of Boards.
clearCount(Square) - Method in class com.editev.chess.Counts
Clears the count for a specific Square.
clearCounts() - Method in class com.editev.chess.Counts
Clears all 64 counts.
clearEP() - Method in class com.editev.chess.GameState
Clear the enpassant column, the last move wasn't a pawn or wasn't two squares.
clone() - Method in class com.editev.chess.Board
A deep copy clone().
clone() - Method in class com.editev.chess.Square
Clone an Object that's a Square that's an exact copy of this one.
clone() - Method in class com.editev.chess.Move
Clone this Move as an Object.
cloneBoard() - Method in class com.editev.chess.Board
A deep copy clone() that returns a Board.
cloneMove() - Method in class com.editev.chess.Move
Clone this Move as a Move.
cloneSquare() - Method in class com.editev.chess.Square
Clone a Square that's an exact copy of this one.
column - Variable in class com.editev.chess.Square
The column address of this square in the chess board with column=0 meaning file a and column=7 meaning file h in algebraic chess notation.
com.editev.chess - package com.editev.chess
 
com.editev.chess.piece - package com.editev.chess.piece
 
com.editev.chess.printer - package com.editev.chess.printer
 
computeMoves() - Method in class com.editev.chess.GameMoves
Compute all the legal moves.
computeMoves(short) - Method in class com.editev.chess.GameMoves
Computes all next legal moves up to a certain move index.
computePieceMoves(GameMoves) - Method in class com.editev.chess.Counts
Computes the starting move index for each Piece that has legal moves.
computePieceTargets(GameMoves, short) - Method in class com.editev.chess.Counts
Count NO_PIECE on the square of the piece that's moving, and the move index on all valid target squares.
constructMovesFromPieces - Variable in class com.editev.chess.EnumeratedGame
A Function that constructs a list of Piece moves from a Square in this Game.
copyFrom(Board) - Method in class com.editev.chess.Board
Copy the contents of another Board into this Board.
copyFrom(Move) - Method in class com.editev.chess.Move
Copy the contents of another Move into this Move.
copyFrom(Square) - Method in class com.editev.chess.Square
Copy another Square into this Square.
counts - Variable in class com.editev.chess.Counts
Contains one byte of count for each piece on a chess board.
counts - Variable in class com.editev.chess.GameHTML
Counts the number of next moves for each square on the board.
Counts - class com.editev.chess.Counts.
This class associates a count with each square on a chess board.
Counts() - Constructor for class com.editev.chess.Counts
 

D

DOCTYPE_STRING - Static variable in class com.editev.chess.printer.PagePrinter
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.editev.chess.ChessServlet
Responds to http GET requests as a good HttpServlet should.
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.editev.chess.ChessServlet
Responds to "post" requests in the same way as "get" requests.

E

enumerateAllLegalMoves() - Method in class com.editev.chess.EnumeratedGame
Enumeration of every legal move for this Game.
EnumeratedGame - class com.editev.chess.EnumeratedGame.
A Game that can enumerate its legal Moves.
EnumeratedGame.AcceptLegalMoves - class com.editev.chess.EnumeratedGame.AcceptLegalMoves.
A class only accept legal moves.
EnumeratedGame.AcceptLegalMoves(EnumeratedGame) - Constructor for class com.editev.chess.EnumeratedGame.AcceptLegalMoves
 
EnumeratedGame.AcceptSquaresOnTheMove - class com.editev.chess.EnumeratedGame.AcceptSquaresOnTheMove.
Only accepts Squares containing pieces that are on-the-move.
EnumeratedGame.AcceptSquaresOnTheMove(EnumeratedGame) - Constructor for class com.editev.chess.EnumeratedGame.AcceptSquaresOnTheMove
 
EnumeratedGame.AllMovesForPieceMoving - class com.editev.chess.EnumeratedGame.AllMovesForPieceMoving.
An enumeration of all Moves for the piece in the Move.
EnumeratedGame.AllMovesForPieceMoving(EnumeratedGame) - Constructor for class com.editev.chess.EnumeratedGame.AllMovesForPieceMoving
create the iterator starting with a Move.
EnumeratedGame.ConstructMovesFromPieces - class com.editev.chess.EnumeratedGame.ConstructMovesFromPieces.
Constructs a list of Piece moves from a Square.
EnumeratedGame.ConstructMovesFromPieces(EnumeratedGame) - Constructor for class com.editev.chess.EnumeratedGame.ConstructMovesFromPieces
 
EnumeratedGame.SquareToPiece - class com.editev.chess.EnumeratedGame.SquareToPiece.
A Function that converts a Square to the Piece on that Square.
EnumeratedGame.SquareToPiece(EnumeratedGame) - Constructor for class com.editev.chess.EnumeratedGame.SquareToPiece
 
EnumeratedGame() - Constructor for class com.editev.chess.EnumeratedGame
 
EP_CAPTURE - Static variable in class com.editev.chess.piece.Pawn
Special piece indicates an en passant (e.p.) capture.
epColumn - Variable in class com.editev.chess.GameState
Which row the previous (2-square, pawn) move was in, for a possible e.p., or NO_EP_COLUMN if none.
equals(Object) - Method in class com.editev.chess.Board
Two boards are equal if all their squares are equal.
equals(Object) - Method in class com.editev.chess.Square
 
equals(Object) - Method in class com.editev.chess.Move
Two Moves are equal if they are equal as squares and their targets are equal as Squares.
eval(Object) - Method in class com.editev.chess.EnumeratedGame.SquareToPiece
 
eval(Object) - Method in class com.editev.chess.EnumeratedGame.ConstructMovesFromPieces
Create a new emumeration of the Pieces
eval(Object) - Method in class com.editev.chess.printer.Printer
Print to a GameHTML and return the same object.

F

findPieceSquare(byte) - Method in class com.editev.chess.Board
Find a Piece on the board.
firstMoveIndex(Move) - Method in class com.editev.chess.piece.Piece
Go to the first move Index.

G

Game - class com.editev.chess.Game.
This class represents a single game of chess.
Game() - Constructor for class com.editev.chess.Game
 
GameHistory - class com.editev.chess.GameHistory.
A GameHistory is a GameMoves with a history of previous moves.
GameHistory() - Constructor for class com.editev.chess.GameHistory
 
GameHTML - class com.editev.chess.GameHTML.
A GameHTML is a GameHistory that can also be displayed in HTML format.
GameHTML(String, String, String, boolean, boolean, boolean, int, PrintStream) - Constructor for class com.editev.chess.GameHTML
Create a GameHTML representing a chess position and a URL.
GameMoves - class com.editev.chess.GameMoves.
A GameMoves is an EnumeratedGame with a list of legal Moves for that Game.
GameMoves() - Constructor for class com.editev.chess.GameMoves
 
gamePrinter - Variable in class com.editev.chess.printer.BodyPrinter
Prints a whole chess game.
GamePrinter - class com.editev.chess.printer.GamePrinter.
Prints an entire chess game!
GamePrinter() - Constructor for class com.editev.chess.printer.GamePrinter
 
GameState - class com.editev.chess.GameState.
Represents the State of a game of chess, including the Board position, and castling status, e.p.
GameState() - Constructor for class com.editev.chess.GameState
 
getAt(int) - Method in class com.editev.chess.Moves
 
getAt(int) - Method in class com.editev.chess.Boards
 
getCapacity() - Method in class com.editev.chess.Moves
 
getCapacity() - Method in class com.editev.chess.Boards
 
getCaptureCSSDefinition(boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
Get the CSS style definition for captured pieces.
getCaptured(boolean) - Method in class com.editev.chess.GameHistory
Get the list of pieces captured by this color.
getColumnOffset(Move) - Method in class com.editev.chess.piece.Piece
Convenience function to translate a move's index into a column offset from the move table.
getCount(Square) - Method in class com.editev.chess.Counts
 
getCSSDefinition(boolean, boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
Get the CSS style definition for this piece and square color.
getEnumeration() - Method in class com.editev.chess.Square
Enumerates all squares in row-major order, start right before the first element.
getEnumeration(byte, byte) - Method in class com.editev.chess.Square
Enumerates all squares in row-major order, start right before the first element.
getEP() - Method in class com.editev.chess.GameState
 
getList() - Method in class com.editev.chess.Moves
 
getList() - Method in class com.editev.chess.Boards
 
getMove(short) - Method in class com.editev.chess.GameMoves
 
getMoveCount() - Method in class com.editev.chess.GameMoves
Count all the the possible legal moves -- don't call this if you want to avoid enumerating all possible legal moves for efficiency reasons, go right to getMove().
getMoveEnumeration() - Method in class com.editev.chess.GameMoves
Retrieves or creates an enumeration of all the legal moves.
getMoves() - Method in class com.editev.chess.GameState
Moves since start of game.
getMoveString() - Method in class com.editev.chess.GameHistory
 
getPiece(Move) - Method in class com.editev.chess.Board
Gets the Piece being Moved..
getPiece(Square) - Method in class com.editev.chess.Board
Gets the Piece at the given square.
getPieceHTML(byte) - Method in class com.editev.chess.GameHTML
Get the HTML for this piece!
getPieceIndex(Move) - Method in class com.editev.chess.Board
Get a piece index by source of Move.
getPieceIndex(Square) - Method in class com.editev.chess.Board
Get a piece index by Square.
getReversibleMoves() - Method in class com.editev.chess.GameState
Get the number of moves since an irreversible move has occurred (50 move rule).
getRowOffset(Move) - Method in class com.editev.chess.piece.Piece
Convenience function to translate a move's index into a row offset from the move table.
getServletInfo() - Method in class com.editev.chess.ChessServlet
Describes this servlet with a String.

H

hasJavascript - Variable in class com.editev.chess.GameHTML
Does this browser support Javascript?
hasMoreElements() - Method in class com.editev.chess.Square
Implements Enumeration in row-major order.
hasPiece(Square) - Method in class com.editev.chess.Board
Is there a piece on this square? @return true if there is a piece at this Square
hasStyles - Variable in class com.editev.chess.GameHTML
Does this browser support style sheets?
HEADER - Static variable in class com.editev.chess.printer.StyleSheetPrinter
Information that needs to appear in the header of the HTML document, including CSS style sheets and Javascript.
HEADER_END - Static variable in class com.editev.chess.printer.JavascriptPrinter
End of the Javascript headers.
HEADER_FUNCTIONS - Static variable in class com.editev.chess.printer.JavascriptPrinter
Javascript function definitions.
HEADER_START - Static variable in class com.editev.chess.printer.JavascriptPrinter
Start of the Javascript headers.
headerPrinter - Static variable in class com.editev.chess.printer.PagePrinter
 
HeaderPrinter - class com.editev.chess.printer.HeaderPrinter.
Prints an HTML header for a chess game.
HeaderPrinter() - Constructor for class com.editev.chess.printer.HeaderPrinter
 
history - Variable in class com.editev.chess.Game
A list of all the Boards since the last reversible move.
HISTORY_STYLE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
 
HISTORY_STYLE_NAME - Static variable in class com.editev.chess.printer.StyleSheetPrinter
 
historyPrinter - Variable in class com.editev.chess.printer.GamePrinter
Print the move history.
HistoryPrinter - class com.editev.chess.printer.HistoryPrinter.
Prints the move history for a Game.
HistoryPrinter() - Constructor for class com.editev.chess.printer.HistoryPrinter
 

I

incCount(Square) - Method in class com.editev.chess.Counts
Increments the count for a specific Square.
inCheck(boolean) - Method in class com.editev.chess.Board
Is the king of this color in check?
incrementMoveIndex(Move) - Method in class com.editev.chess.piece.Piece
Go to next possible move.
incrementMoveIndex(Move) - Method in class com.editev.chess.piece.Pawn
Increment the move to the next one.
incrementMoves() - Method in class com.editev.chess.GameState
Moves since start of game.
index - Variable in class com.editev.chess.Move
Index the move in the series of offsets in the Piece.
irreversibleMove() - Method in class com.editev.chess.GameState
An irreversible move has occurred, which must be a capture or a pawn move (50 move rule).
is(byte) - Static method in class com.editev.chess.Chess.Black
 
is(byte) - Static method in class com.editev.chess.Chess.White
 
isAttacked(boolean, Square) - Method in class com.editev.chess.Board
Is this square attacked?
isCapture(Move, Board) - Method in class com.editev.chess.piece.Piece
Is this move a capture on this board?
isCapture(Move, Board) - Method in class com.editev.chess.piece.Pawn
We have to override this method because Pawns only capture diagonally.
isepCapture(Move, Board) - Method in class com.editev.chess.piece.Pawn
Is this legal move an e.p.
isIllegal(Move) - Method in class com.editev.chess.Game
 
isIllegal(Move, Game) - Method in class com.editev.chess.piece.Piece
Is this illegal because of a piece-specific rule?
isIllegal(Move, Game) - Method in class com.editev.chess.piece.Pawn
Is this Pawn move legal? It may only move two squares on the first move.
isIrreversible(Move, Board) - Method in class com.editev.chess.piece.Piece
Is this move irreversible?
isIrreversible(Move, Board) - Method in class com.editev.chess.piece.Pawn
Pawn moves are never reversible.
isPromotion(Move) - Static method in class com.editev.chess.piece.Pawn
Is this move a promotion for either color?
isPromotion(Move, byte) - Static method in class com.editev.chess.piece.Pawn
Is this move a promotion for the given color?
isStalemate - Variable in class com.editev.chess.Game
 
isStalemate() - Method in class com.editev.chess.Game
 
isTwoSquare(Move) - Static method in class com.editev.chess.piece.Pawn
Is this a two square move for the pawn?
isValid() - Method in class com.editev.chess.Square
Is this Square inside the board? Squares are valid, Moves are legal....
isWhite - Variable in class com.editev.chess.printer.StatusPrinter
 
isWhite - Variable in class com.editev.chess.printer.CapturedPrinter
 
isWhite() - Method in class com.editev.chess.Square
Is this a white square?
isWhiteMove() - Method in class com.editev.chess.GameState
Is white on the move?

J

javascript - Variable in class com.editev.chess.printer.HeaderPrinter
Print the Javascript definitions, if any.
JavascriptPrinter - class com.editev.chess.printer.JavascriptPrinter.
Prints any Javascript definitions needed for the chess board.
JavascriptPrinter() - Constructor for class com.editev.chess.printer.JavascriptPrinter
 

K

KING - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's King.
KING - Static variable in class com.editev.chess.Chess.White
Piece index for White's King.
kingMoved - Variable in class com.editev.chess.GameState
Have the { White, Black } kings moved yet?
kingMoved(byte) - Method in class com.editev.chess.GameState
Has a king been moved?
Knight - class com.editev.chess.piece.Knight.
A Knight is a Piece can jump any other Piece but otherwise has no special rules.
KNIGHT - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's Knight.
KNIGHT - Static variable in class com.editev.chess.Chess.White
Piece index for White's Knight.
Knight() - Constructor for class com.editev.chess.piece.Knight
This class is a singleton, so the constructor is private.

M

main(String[]) - Static method in class com.editev.chess.GameHistory
Test this class by randomly playing an awful lot of games.
markStart(Square) - Method in class com.editev.chess.Counts
Sets the count for a specific Square to indicate that it's the start piece for a move.
MAX_MOVES - Static variable in class com.editev.chess.GameMoves
Estimate of max legal moves per position: max ever actually recorded in a random game is 71.
moreMoves(Move) - Method in class com.editev.chess.piece.Piece
Any more possible moves?
moreMoves(Move) - Method in class com.editev.chess.piece.Pawn
Any more moves? This is also overridden to take care of the promotions.
move - Variable in class com.editev.chess.Game
a Move that is shared promiscuously amongst all the Pieces and inner classes.
Move - class com.editev.chess.Move.
Represents a move in the game of chess.
Move() - Constructor for class com.editev.chess.Move
 
moveCount - Variable in class com.editev.chess.GameHTML
Counts the moves that we've already displayed.
moveEnumeration - Variable in class com.editev.chess.GameMoves
An enumeration of all the legal moves, might be null or partially consumed.
moveHistory - Variable in class com.editev.chess.GameHistory
A list of the moves already applied.
moveIndices - Variable in class com.editev.chess.GameHistory
A list of the move indices already applied.
moveKing(byte) - Method in class com.editev.chess.GameState
Marks a king as having been moved.
moveRandomly() - Method in class com.editev.chess.GameHistory
Pick a move at random from all the legal moves and apply it.
moveRook(byte, boolean) - Method in class com.editev.chess.GameState
Mark a rook as having been moved.
moves - Variable in class com.editev.chess.GameState
Moves since the start of the game.
moves - Variable in class com.editev.chess.GameHTML
The list of previous moves, if any.
moves - Variable in class com.editev.chess.piece.Piece
The moves describe all the possible moves in left-to-right, top-to-bottom order.
Moves - class com.editev.chess.Moves.
A growing, unsynchronized list of Move Objects.
MOVES - Static variable in class com.editev.chess.piece.Knight
An array of all the possible Knight moves as byte offsets.
MOVES - Static variable in class com.editev.chess.piece.Pawn.Black
An array of all the possible Pawn.Black moves as byte offsets.
MOVES - Static variable in class com.editev.chess.piece.Pawn.White
An array of all the possible Pawn.White moves as byte offsets.
MOVES - Static variable in class com.editev.chess.piece.Bishop
An array of all the possible Bishop moves as byte offsets.
MOVES - Static variable in class com.editev.chess.piece.Rook
An array of all the possible Rook moves as byte offsets.
MOVES - Static variable in class com.editev.chess.piece.Queen
An array of all the possible Queen moves as byte offsets.
MOVES_PER_TABLE - Static variable in class com.editev.chess.printer.HistoryPrinter
 
Moves() - Constructor for class com.editev.chess.Moves
Creates an empty Move with the default capacity.
Moves(int) - Constructor for class com.editev.chess.Moves
Creates an empty Move with the specified capacity.
movesCompleted - Variable in class com.editev.chess.GameMoves
Have we enumerated ALL the next moves for this position yet?
movesEnumerated - Variable in class com.editev.chess.GameMoves
Have we enumerated the next moves for this position yet?
moveURL - Variable in class com.editev.chess.GameHTML
The base URL for moves.

N

newList(int) - Method in class com.editev.chess.Moves
Actually allocates a new list of the right class and size.
newList(int) - Method in class com.editev.chess.Boards
Actually allocates a new list of the right class and size.
next() - Method in class com.editev.chess.EnumeratedGame.AllMovesForPieceMoving
Retrieve the next move (legal or not!)
nextElement() - Method in class com.editev.chess.Square
Implements Enumeration in row-major order.
NO_EP_COLUMN - Static variable in class com.editev.chess.GameState
This constant represents the very common case where the last move didn't introduce the possibility of an en passant capture in the next move.
NO_MOVE - Static variable in class com.editev.chess.Chess
Represents no move from a list.
NO_PIECE - Static variable in class com.editev.chess.Chess
Represents no piece on a square.
NONE - Static variable in class com.editev.chess.printer.RefreshPrinter
A refresh of NONE means don't refresh at all.
notColor(byte) - Static method in class com.editev.chess.Chess
Exchange WHITE and BLACK.

O

out - Variable in class com.editev.chess.GameHTML
An Indentor wraps a PrintStream in some useful functions for outputting HTML.

P

pagePrinter - Static variable in class com.editev.chess.ChessServlet
 
PagePrinter - class com.editev.chess.printer.PagePrinter.
Prints an HTML page representing a chess game.
PagePrinter() - Constructor for class com.editev.chess.printer.PagePrinter
 
Pawn - class com.editev.chess.piece.Pawn.
The Pawn has four special cases; first move, en passant, capturing and promotion.
PAWN - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's Pawn.
PAWN - Static variable in class com.editev.chess.Chess.White
Piece index for White's Pawn.
Pawn.Black - class com.editev.chess.piece.Pawn.Black.
This derivation of Pawn represents a Black pawn, and only differs from the White pawn by its list of moves.
Pawn.Black() - Constructor for class com.editev.chess.piece.Pawn.Black
This class is a singleton, so the constructor is private.
Pawn.White - class com.editev.chess.piece.Pawn.White.
This derivation of Pawn represents a White pawn, and only differs from the Black pawn by its list of moves.
Pawn.White() - Constructor for class com.editev.chess.piece.Pawn.White
This class is a singleton, so the constructor is private.
Pawn(byte[][]) - Constructor for class com.editev.chess.piece.Pawn
 
piece - Variable in class com.editev.chess.EnumeratedGame.AllMovesForPieceMoving
the Piece that's doing the moving.
Piece - class com.editev.chess.piece.Piece.
Contains a list of possible piece moves as byte offsets, and encompasses all the rules about legal moves and actually performing the move as an operation on the Game.
PIECE - Static variable in class com.editev.chess.piece.Knight
The unique/singleton instantiation of Knight.
PIECE - Static variable in class com.editev.chess.piece.Pawn.Black
The unique/singleton instantiation of Pawn.Black.
PIECE - Static variable in class com.editev.chess.piece.Pawn.White
The unique/singleton instantiation of Pawn.White.
PIECE - Static variable in class com.editev.chess.piece.Bishop
The unique/singleton instantiation of Bishop.
PIECE - Static variable in class com.editev.chess.piece.Rook
The unique/singleton instantiation of Rook.
PIECE - Static variable in class com.editev.chess.piece.Queen
The unique/singleton instantiation of Queen.
PIECE_HTML - Static variable in class com.editev.chess.GameHTML
HTML representing black and white pieces only.
PIECE_NAMES - Static variable in class com.editev.chess.Board
Character identifiers for the pieces.
PIECE_TEXT - Static variable in class com.editev.chess.GameHTML
HTML representing black and white pieces only.
Piece(byte[][]) - Constructor for class com.editev.chess.piece.Piece
 
pieceBetween(Move, Board) - Method in class com.editev.chess.piece.Piece
Is there a piece between the "from" and "target" squares? Only the Knight overrides this method.
pieceBetween(Move, Board) - Method in class com.editev.chess.piece.Knight
The knight jumps all pieces so piecesBetween always returns false.
pieceColor(boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
The color of a piece.
piecePrinter - Variable in class com.editev.chess.printer.SquarePrinter
Prints a single piece.
PiecePrinter - class com.editev.chess.printer.PiecePrinter.
Prints just a single piece.
PiecePrinter() - Constructor for class com.editev.chess.printer.PiecePrinter
 
PIECES - Static variable in class com.editev.chess.Board
A list of Pieces for each piece index which is used to translate the indices representing pieces in the Board into Pieces with rules.
print(GameHTML) - Method in class com.editev.chess.printer.Printer
Print to an instance of GameHTML.
print(GameHTML) - Method in class com.editev.chess.printer.BodyPrinter
Prints the HTML body for a chess game.
print(GameHTML) - Method in class com.editev.chess.printer.BoardPrinter
Prints the entire board.
print(GameHTML) - Method in class com.editev.chess.printer.GamePrinter
Print the whole game area including the board, the captured pieces and the game history.
print(GameHTML) - Method in class com.editev.chess.printer.StatusPrinter
Prints the status of Black or White.
print(GameHTML) - Method in class com.editev.chess.printer.HistoryPrinter
Prints the move history for a Game.
print(GameHTML) - Method in class com.editev.chess.printer.SquarePrinter
Prints the entire board.
print(GameHTML) - Method in class com.editev.chess.printer.JavascriptPrinter
Prints any Javascript definitions needed for the chess board.
print(GameHTML) - Method in class com.editev.chess.printer.HeaderPrinter
Prints just the HTML header.
print(GameHTML) - Method in class com.editev.chess.printer.RefreshPrinter
Prints just the refresh header.
print(GameHTML) - Method in class com.editev.chess.printer.PagePrinter
Print an entire HTML page representing a Game.
print(GameHTML) - Method in class com.editev.chess.printer.StyleSheetPrinter
 
print(GameHTML) - Method in class com.editev.chess.printer.PiecePrinter
Prints just one piece to the PrintStream.
print(GameHTML) - Method in class com.editev.chess.printer.PromotionPrinter
Prints just the promotion area.
print(GameHTML) - Method in class com.editev.chess.printer.CapturedPrinter
Prints the array of captured pieces.
Printer - class com.editev.chess.printer.Printer.
A Printer is a Function that prints to a GameHTML -- we put together Printers to display an entire game as HTML.
Printer() - Constructor for class com.editev.chess.printer.Printer
 
printOneMove(GameHTML, int, StringBuffer) - Method in class com.editev.chess.printer.HistoryPrinter
 
promotion - Variable in class com.editev.chess.Move
What piece is being created if this move is a promotion? Most of the time, Moves are not promotions and this field is wasted.
promotionPrinter - Variable in class com.editev.chess.printer.PiecePrinter
Print any promotions.
PromotionPrinter - class com.editev.chess.printer.PromotionPrinter.
Prints just the promotion area.
PromotionPrinter() - Constructor for class com.editev.chess.printer.PromotionPrinter
 

Q

Queen - class com.editev.chess.piece.Queen.
A Queen has no specific rules attached to it, just a list of moves.
QUEEN - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's Queen.
QUEEN - Static variable in class com.editev.chess.Chess.White
Piece index for White's Queen.
Queen() - Constructor for class com.editev.chess.piece.Queen
This class is a singleton, so the constructor is private.

R

refresh - Variable in class com.editev.chess.GameHTML
How often do we refresh (with a random move)?
refresh - Variable in class com.editev.chess.printer.HeaderPrinter
Print the refresh header, if any.
RefreshPrinter - class com.editev.chess.printer.RefreshPrinter.
Print the refresh header, if any.
RefreshPrinter() - Constructor for class com.editev.chess.printer.RefreshPrinter
 
resetPromotion() - Method in class com.editev.chess.Move
Reset the promotion variable to the start.
resultsInCheck(Move, Piece) - Method in class com.editev.chess.Board
Does this move result in check?
reversibleMoves - Variable in class com.editev.chess.GameState
Moves since the last irreversible move.
Rook - class com.editev.chess.piece.Rook.
Once a Rook has moved, it may no longer castle, but otherwise has no specific rules.
ROOK - Static variable in class com.editev.chess.Chess.Black
Piece index for Black's Rook.
ROOK - Static variable in class com.editev.chess.Chess.White
Piece index for White's Rook.
Rook() - Constructor for class com.editev.chess.piece.Rook
This class is a singleton, so the constructor is private.
rookMoved - Variable in class com.editev.chess.GameState
Have the { {WK, WQ}, {BK, BQ} } rooks moved yet?
rookMoved(byte, boolean) - Method in class com.editev.chess.GameState
Has a rook been moved?
row - Variable in class com.editev.chess.Square
The row address of this square in the chess board with row=0 meaning rank 8 in algebraic chess notation.

S

SEPARATOR - Static variable in class com.editev.chess.GameHistory
Separates move in a Move description string.
setEP(byte) - Method in class com.editev.chess.GameState
Set the e.p.
setMove(Square, short) - Method in class com.editev.chess.Counts
Sets the count for a square to be a specific move number.
setMoveIndex(Move, byte) - Method in class com.editev.chess.piece.Piece
Go to a specific move index.
setPieceIndex(Square, byte) - Method in class com.editev.chess.Board
Set a piece index by Square.
source - Variable in class com.editev.chess.Move
The target square that this move is going to.
square - Variable in class com.editev.chess.GameHTML
An enumerator for squares.
Square - class com.editev.chess.Square.
This class represents a Square on a chess board as a column and row position.
Square() - Constructor for class com.editev.chess.Square
Create an empty square
Square(byte, byte) - Constructor for class com.editev.chess.Square
Create a square with a column and row value.
Square(int, int) - Constructor for class com.editev.chess.Square
Create a square with an int column and row value.
squareColor(boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
The color of a square.
squarePrinter - Static variable in class com.editev.chess.printer.BoardPrinter
Prints just a single square.
SquarePrinter - class com.editev.chess.printer.SquarePrinter.
Prints a single square on the chess board..
SquarePrinter() - Constructor for class com.editev.chess.printer.SquarePrinter
 
squares - Variable in class com.editev.chess.Board
The actual 64 squares in an 8x8 array.
StatusPrinter - class com.editev.chess.printer.StatusPrinter.
Prints the status of Black or White.
StatusPrinter(boolean) - Constructor for class com.editev.chess.printer.StatusPrinter
 
STYLE_TEMPLATE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
A template for CSS styles for squares and pieces.
STYLE_TEMPLATE - Static variable in class com.editev.chess.printer.CapturedPrinter
A template for CSS styles for captured pieces..
styleName(boolean) - Static method in class com.editev.chess.printer.CapturedPrinter
The name of a style for a captured piece.
styleName(boolean, boolean) - Static method in class com.editev.chess.printer.StyleSheetPrinter
The name of a style for a given square and piece color.
styleSheet - Variable in class com.editev.chess.printer.HeaderPrinter
Print the style sheets, if any.
StyleSheetPrinter - class com.editev.chess.printer.StyleSheetPrinter.
Prints a style sheet, if necessary.
StyleSheetPrinter() - Constructor for class com.editev.chess.printer.StyleSheetPrinter
 

T

target - Variable in class com.editev.chess.Move
The target square that this move is going to.
target - Variable in class com.editev.chess.GameHTML
If this is the second part of a move, what is the first target square?
targetURL - Variable in class com.editev.chess.GameHTML
The base URL for this servlet's targeted moves.
textOnly - Variable in class com.editev.chess.GameHTML
Is this a text-only browser?
thirdTime() - Method in class com.editev.chess.Game
Is this board position appearing for the third time?
toColor(boolean) - Static method in class com.editev.chess.Chess
Return either WHITE or BLACK.
toColor(boolean, byte) - Static method in class com.editev.chess.Chess
Return either WHITE or BLACK.
toColorName(boolean) - Static method in class com.editev.chess.Chess
Return either "White" or "Black".
toString() - Method in class com.editev.chess.Board
 
toString() - Method in class com.editev.chess.Boards
Represent all these boards for debugging purposes.
toString() - Method in class com.editev.chess.Square
Square in chess notation.
toString() - Method in class com.editev.chess.Counts
 
toString() - Method in class com.editev.chess.Move
Represent the Move as the source and target Squares.

U

undoMoveToBoard(Move, Board, byte) - Method in class com.editev.chess.piece.Piece
Undo a move, using the piece captured, if any.
undoMoveToBoard(Move, Board, byte) - Method in class com.editev.chess.piece.Pawn
Unapply the move to the squares of the board.

W

WHITE - Static variable in class com.editev.chess.Chess
White's home rank, also used as an identifier for White
WHITE - Static variable in class com.editev.chess.Chess.White
White's home rank, also used as an identifier for White
WHITE_PIECE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
Color of a white piece.
WHITE_SQUARE - Static variable in class com.editev.chess.printer.StyleSheetPrinter
Color of a white square.
whiteCaptures - Variable in class com.editev.chess.GameHistory
Lists of the pieces captured by White.
whiteStatus - Variable in class com.editev.chess.printer.GamePrinter
Print the status of White.

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