public class TimeoutPlayer extends ReversiPlayer
height, myColor, opponentColor, width
Constructor and Description |
---|
TimeoutPlayer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns name of the reversi player.
|
ReversiMove |
makeNextMove(int[][] board)
makeNextTurn is called by the reversi server when the player has to compute the next move.
|
endGame, getEmptySquareColor, getMyColor, getOpponentColor, init, toString
public java.lang.String getName()
ReversiPlayer
getName
in interface ReversiPlayerInterface
getName
in class ReversiPlayer
public ReversiMove makeNextMove(int[][] board)
ReversiPlayer
ReversiMove
class encapsulating the coordinates of the stone to be put on the board.makeNextMove
in interface ReversiPlayerInterface
makeNextMove
in class ReversiPlayer
board
- - contains actual map of the board represented by two-dimensional matrix.
Each sqaure contains number of -1 representing empty square and number 0 and 1 representing players' stones.