A B C E F G I M O P S T W

A

at(int, int) - Method in class OthelloState
Return the piece at the given (row,col).

B

Black - Static variable in class OthelloPiece
 

C

clone() - Method in class OthelloState
Return a cloned copy of the state.
color() - Method in class OthelloPiece
 
currentPlayer() - Method in class OthelloState
Return the current player's color, as a OthelloPiece object.

E

end() - Method in class OthelloGame
End the game.

F

forfeitMove() - Method in class OthelloState
Forfeit the current turn.

G

gameOver() - Method in class OthelloState
Return whether or not the game is over, ie neither Black nor White can make any more moves.

I

InvalidMoveException - exception InvalidMoveException.
Exception thrown when some player makes an invalid move.
InvalidMoveException(int, int, OthelloPiece) - Constructor for class InvalidMoveException
 
InvalidMoveException(OthelloPiece, String) - Constructor for class InvalidMoveException
 
isValidMove(int, int) - Method in class OthelloState
Return whether a placement at (row,col) is valid for the current player.
isValidPosition(int, int) - Static method in class OthelloState
See if the specified position is valid, in other words: it's on the board.

M

makeMove(int, int) - Method in class OthelloState
Place a piece in the specified (row,col) position.
makeMove(OthelloState, long) - Method in interface Player
Get this player's next move.

O

OthelloGame - class OthelloGame.
A game of Othello.
OthelloGame() - Constructor for class OthelloGame
Constructor for a default player-vs-player game.
OthelloGame(Player) - Constructor for class OthelloGame
Constructor for a one-player, player-vs-computer game.
OthelloGame(Player, Player) - Constructor for class OthelloGame
Constructor for a no-holds-barred, computer-vs-computer game.
OthelloPiece - class OthelloPiece.
A Java "enum", which is used for the different pieces that can be on the board.
OthelloState - class OthelloState.
Class used to represent the board during a game of Othello.
OthelloState() - Constructor for class OthelloState
Initialize the board.
otherPlayer() - Method in class OthelloState
Return the player who is not playing this turn.

P

Player - interface Player.
Interface for a computer-controlled Othello player.
play() - Method in class OthelloGame
Play the game.

S

setColor(OthelloPiece) - Method in interface Player
Set the color of this player.
setTimeLimit(long) - Method in class OthelloGame
Set the time-limit to be used by this game.
setTimeLimit(long) - Method in interface Player
Set the time-limit that each move can make.

T

toString() - Method in class OthelloPiece
 

W

White - Static variable in class OthelloPiece
 
winner() - Method in class OthelloState
 

A B C E F G I M O P S T W