cz.cvut.agents.rph.reversi.players
Class WrongMovePlayer

java.lang.Object
  extended by cz.cvut.agents.rph.reversi.ReversiPlayer
      extended by cz.cvut.agents.rph.reversi.players.WrongMovePlayer
All Implemented Interfaces:
ReversiPlayerInterface, java.rmi.Remote

public class WrongMovePlayer
extends ReversiPlayer

The simplest player possible -- plays shamelessly a wrong move.

Author:
: Ondrej Vanek Date: 10/3/12 Time: 10:04 AM

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

WrongMovePlayer

public WrongMovePlayer()
Method Detail

getName

public java.lang.String getName()
Description copied from class: ReversiPlayer
Returns name of the reversi player. Return your username!

Specified by:
getName in interface ReversiPlayerInterface
Specified by:
getName in class ReversiPlayer
Returns:
name of the reversi player

makeNextMove

public ReversiMove makeNextMove(int[][] board)
Description copied from class: ReversiPlayer
This method is called by the reversi server when the player has to compute the next move. The method returns a ReversiMove class encapsulating the coordinates of the stone to be put on the board.

Specified by:
makeNextMove in interface ReversiPlayerInterface
Specified by:
makeNextMove in class ReversiPlayer
Parameters:
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.
Returns:
specific reversiMove