Interface Player


public interface Player

Interface for a computer-controlled Othello player. This provides the methods that must be implemented in order to play the game.

Version:
1.0
Author:
Matt Hoffman

Method Summary
 void makeMove(OthelloState state, long timeLeft)
          Get this player's next move.
 void setColor(OthelloPiece color)
          Set the color of this player.
 void setTimeLimit(long timeLimit)
          Set the time-limit that each move can make.
 

Method Detail

setColor

public void setColor(OthelloPiece color)
Set the color of this player.

Parameters:
color - The color to be used for this game.

setTimeLimit

public void setTimeLimit(long timeLimit)
Set the time-limit that each move can make.

Parameters:
timeLimit - The time-limit, in milliseconds.

makeMove

public void makeMove(OthelloState state,
                     long timeLeft)
              throws InvalidMoveException
Get this player's next move.

Parameters:
state - The current state of the board.
timeLeft - The time left for your player.
Throws:
InvalidMoveException