A B C D E F G I K L M N P Q R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- Agent - Class in threeChess
-
An interface for AI bots to implement.
- Agent() - Constructor for class threeChess.Agent
-
0 argument constructor.
B
- BA1 - threeChess.Position
- BA2 - threeChess.Position
- BA3 - threeChess.Position
- BA4 - threeChess.Position
- BACKWARD - threeChess.Direction
- BB1 - threeChess.Position
- BB2 - threeChess.Position
- BB3 - threeChess.Position
- BB4 - threeChess.Position
- BC1 - threeChess.Position
- BC2 - threeChess.Position
- BC3 - threeChess.Position
- BC4 - threeChess.Position
- BD1 - threeChess.Position
- BD2 - threeChess.Position
- BD3 - threeChess.Position
- BD4 - threeChess.Position
- BE1 - threeChess.Position
- BE2 - threeChess.Position
- BE3 - threeChess.Position
- BE4 - threeChess.Position
- BF1 - threeChess.Position
- BF2 - threeChess.Position
- BF3 - threeChess.Position
- BF4 - threeChess.Position
- BG1 - threeChess.Position
- BG2 - threeChess.Position
- BG3 - threeChess.Position
- BG4 - threeChess.Position
- BH1 - threeChess.Position
- BH2 - threeChess.Position
- BH3 - threeChess.Position
- BH4 - threeChess.Position
- BISHOP - threeChess.PieceType
- BLUE - threeChess.Colour
- Board - Class in threeChess
-
Main class for representing game state.
- Board(int) - Constructor for class threeChess.Board
-
Initialises the board, placing all pieces at their initial position.
C
- CheatBoard - Class in threeChess
-
Main class for representing game state.
- CheatBoard() - Constructor for class threeChess.CheatBoard
-
Creates a standard board
- clone() - Method in class threeChess.Board
-
Returns a deep clone of the board state, such that no operations will affect the original board instance.
- Colour - Enum in threeChess
-
Enumeration the player colours
D
- Direction - Enum in threeChess
-
Enumeration of the rectilinear directions used as the basis for all moves.
- drawToCanvas(Graphics2D) - Method in class threeChess.ThreeChessDisplay
E
- evenParity() - Method in enum threeChess.Position
-
returns true if the position has even parity equivalent to a black square on a traditional chess board.
F
- finalBoard(Board) - Method in class threeChess.Agent
-
Displays the final board position to the agent, if required for learning purposes.
- finalBoard(Board) - Method in class threeChess.agents.ManualAgent
-
Displays the final board position to the agent, if required for learning purposes.
- finalBoard(Board) - Method in class threeChess.agents.RandomAgent
-
Displays the final board position to the agent, if required for learning purposes.
- FORWARD - threeChess.Direction
G
- GA1 - threeChess.Position
- GA2 - threeChess.Position
- GA3 - threeChess.Position
- GA4 - threeChess.Position
- gameOver() - Method in class threeChess.Board
- GB1 - threeChess.Position
- GB2 - threeChess.Position
- GB3 - threeChess.Position
- GB4 - threeChess.Position
- GC1 - threeChess.Position
- GC2 - threeChess.Position
- GC3 - threeChess.Position
- GC4 - threeChess.Position
- GD1 - threeChess.Position
- GD2 - threeChess.Position
- GD3 - threeChess.Position
- GD4 - threeChess.Position
- GE1 - threeChess.Position
- GE2 - threeChess.Position
- GE3 - threeChess.Position
- GE4 - threeChess.Position
- get(Colour, int, int) - Static method in enum threeChess.Position
-
Gets the position corresponding to the specified colour, row and column.
- getCaptured(Colour) - Method in class threeChess.Board
- getChar() - Method in enum threeChess.PieceType
-
Returns the unicode character corresponding to a black version of this piece.
- getColour() - Method in class threeChess.Piece
- getColour() - Method in enum threeChess.Position
- getColumn() - Method in enum threeChess.Position
- getLoser() - Method in class threeChess.Board
-
The loser of the game is the player who had their King taken, or the player who ran out of time.
- getMove() - Method in class threeChess.Agent
- getMove(int) - Method in class threeChess.Board
-
returns the move made at the corresponding index (starting from 1).
- getMoveCount() - Method in class threeChess.Board
-
Returns the number of moves made so far.
- getPiece(Position) - Method in class threeChess.Board
-
Gets the piece at a specified position.
- getPositions(Colour) - Method in class threeChess.Board
-
Return a set of all the positions of pieces belonging to a player.
- getRow() - Method in enum threeChess.Position
- getStepReps() - Method in enum threeChess.PieceType
-
Returns the number of repetitions of a step are allowed.
- getSteps() - Method in enum threeChess.PieceType
-
Returns the array of steps that can make legitimate moves.
- getTimeLeft(Colour) - Method in class threeChess.Board
-
Get the time left for the specified player.
- getTurn() - Method in class threeChess.Board
-
Gets the player whose turn it currently is
- getType() - Method in class threeChess.Piece
- getValue() - Method in class threeChess.Piece
- getValue() - Method in enum threeChess.PieceType
- getWinner() - Method in class threeChess.Board
-
The winner of the game is the player who takes another player's King, or the player with the highest score when another player runs out of time.
- GF1 - threeChess.Position
- GF2 - threeChess.Position
- GF3 - threeChess.Position
- GF4 - threeChess.Position
- GG1 - threeChess.Position
- GG2 - threeChess.Position
- GG3 - threeChess.Position
- GG4 - threeChess.Position
- GH1 - threeChess.Position
- GH2 - threeChess.Position
- GH3 - threeChess.Position
- GH4 - threeChess.Position
- GREEN - threeChess.Colour
I
- ImpossiblePositionException - Exception in threeChess
-
Exception class for reacting to impossible positions
- ImpossiblePositionException(String) - Constructor for exception threeChess.ImpossiblePositionException
- isLegalMove(Position, Position) - Method in class threeChess.Board
-
Checks if a move is legal.
- isLegalMove(Position, Position) - Method in class threeChess.CheatBoard
-
All moves are deemed legal
K
L
M
- main(String[]) - Static method in class threeChess.ThreeChess
-
This method can be customised to run tournaments with agents added in the code (add them to array bots), or manual games between players, or a cheat mode which is effectively a board that can be freely manipulated.
- ManualAgent - Class in threeChess.agents
-
An interface for AI bots to implement.
- ManualAgent() - Constructor for class threeChess.agents.ManualAgent
-
A no argument constructor, required for tournament management.
- ManualAgent(String) - Constructor for class threeChess.agents.ManualAgent
- move(Position, Position) - Method in class threeChess.Board
-
Executes a legal move.
- move(Position, Position, int) - Method in class threeChess.Board
-
Executes a legal move.
N
- neighbour(Direction) - Method in enum threeChess.Position
-
Gets the neighbouring cell in the given direction.
P
- paint(Graphics) - Method in class threeChess.ThreeChessDisplay
-
delegate to the repaintCanvas method, when paint() is called.
- PAWN - threeChess.PieceType
- Piece - Class in threeChess
-
A specific piece on the board.
- Piece(PieceType, Colour) - Constructor for class threeChess.Piece
-
Constructs a piece of the given type and colour.
- PieceType - Enum in threeChess
-
Enumeration of the different piece types.
- play() - Static method in class threeChess.ThreeChess
-
Default play scenario for three manual agents, no time limit, logged to System.out with display on.
- play(Agent, Agent, Agent) - Static method in class threeChess.ThreeChess
-
Runs a timed threeChess game between three players with a graphical board and moves logged to System.out.
- play(Agent, Agent, Agent, int, PrintStream, boolean) - Static method in class threeChess.ThreeChess
-
Runs a threeChess game between three players.
- playCheat() - Static method in class threeChess.ThreeChess
-
This plays amanual game where all rules are ignored.
- playMove(Board) - Method in class threeChess.Agent
-
Play a move in the game.
- playMove(Board) - Method in class threeChess.agents.ManualAgent
-
Play a move in the game.
- playMove(Board) - Method in class threeChess.agents.RandomAgent
-
Play a move in the game.
- Position - Enum in threeChess
-
An enumeration of the 96 board positions.
Q
R
- RA1 - threeChess.Position
- RA2 - threeChess.Position
- RA3 - threeChess.Position
- RA4 - threeChess.Position
- RandomAgent - Class in threeChess.agents
-
An interface for AI bots to implement.
- RandomAgent() - Constructor for class threeChess.agents.RandomAgent
-
A no argument constructor, required for tournament management.
- RB1 - threeChess.Position
- RB2 - threeChess.Position
- RB3 - threeChess.Position
- RB4 - threeChess.Position
- RC1 - threeChess.Position
- RC2 - threeChess.Position
- RC3 - threeChess.Position
- RC4 - threeChess.Position
- RD1 - threeChess.Position
- RD2 - threeChess.Position
- RD3 - threeChess.Position
- RD4 - threeChess.Position
- RE1 - threeChess.Position
- RE2 - threeChess.Position
- RE3 - threeChess.Position
- RE4 - threeChess.Position
- RED - threeChess.Colour
- repaintCanvas() - Method in class threeChess.ThreeChessDisplay
-
Repaints the board to the canvas.
- RF1 - threeChess.Position
- RF2 - threeChess.Position
- RF3 - threeChess.Position
- RF4 - threeChess.Position
- RG1 - threeChess.Position
- RG2 - threeChess.Position
- RG3 - threeChess.Position
- RG4 - threeChess.Position
- RH1 - threeChess.Position
- RH2 - threeChess.Position
- RH3 - threeChess.Position
- RH4 - threeChess.Position
- RIGHT - threeChess.Direction
- ROOK - threeChess.PieceType
- run() - Method in class threeChess.Agent
S
- score(Colour) - Method in class threeChess.Board
-
Calculates a players score, used for some variants of the game.
- setBoard(Board) - Method in class threeChess.Agent
-
For running threaded games.
- step(Piece, Direction[], Position) - Method in class threeChess.Board
-
Performs one step of a move such as the L shaped move of a knight, or a diagonal step of a Bishop.
T
- threeChess - package threeChess
- ThreeChess - Class in threeChess
-
Class with static methods for running tournaments and playing threeChess matches.
- ThreeChess() - Constructor for class threeChess.ThreeChess
- threeChess.agents - package threeChess.agents
- ThreeChessDisplay - Class in threeChess
- ThreeChessDisplay(Board, String, String, String) - Constructor for class threeChess.ThreeChessDisplay
-
Creates a graphical representation of a threeChess board
- toString() - Method in class threeChess.Agent
- toString() - Method in class threeChess.agents.ManualAgent
- toString() - Method in class threeChess.agents.RandomAgent
- toString() - Method in class threeChess.Piece
- tournament(Agent[], int, int, Boolean, String) - Static method in class threeChess.ThreeChess
-
Runs a tournament for a group of agents.
V
- valueOf(String) - Static method in enum threeChess.Colour
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum threeChess.Direction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum threeChess.PieceType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum threeChess.Position
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum threeChess.Colour
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum threeChess.Direction
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum threeChess.PieceType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum threeChess.Position
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages