core
Class HumanPlayer

java.lang.Object
  extended by core.Player
      extended by core.HumanPlayer
All Implemented Interfaces:
net.antichess.ai.AiPlayer

public class HumanPlayer
extends Player

A stub class to identify the human players (for ui's)


Constructor Summary
HumanPlayer(Color color)
           
 
Method Summary
 Move askForMove(Move opponentsMove)
          Gets the next move of the player, given the opponents move.
 void update(Game game)
          Has the player make a series of moves.
 
Methods inherited from class core.Player
askForMove, getColor, getMove, getPersistentState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HumanPlayer

public HumanPlayer(Color color)
See Also:
Player
Method Detail

askForMove

public Move askForMove(Move opponentsMove)
Description copied from class: Player
Gets the next move of the player, given the opponents move.

Specified by:
askForMove in class Player
Parameters:
opponentsMove - the opponents move
See Also:
Player

update

public void update(Game game)
Description copied from class: Player
Has the player make a series of moves. Used to get the AI player up to speed on a newly loaded game

Specified by:
update in class Player
See Also:
Player