|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cvut.agents.rph.reversi.ReversiPlayer
cz.cvut.agents.rph.reversi.players.WrongMovePlayer
public class WrongMovePlayer
The simplest player possible -- plays shamelessly a wrong move.
Field Summary |
---|
Fields inherited from class cz.cvut.agents.rph.reversi.ReversiPlayer |
---|
height, myColor, opponentColor, width |
Constructor Summary | |
---|---|
WrongMovePlayer()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns name of the reversi player. |
ReversiMove |
makeNextMove(int[][] board)
This method is called by the reversi server when the player has to compute the next move. |
Methods inherited from class cz.cvut.agents.rph.reversi.ReversiPlayer |
---|
endGame, getEmptySquareColor, getMyColor, getOpponentColor, init, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrongMovePlayer()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |