core
Class HumanPlayer
java.lang.Object
core.Player
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)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HumanPlayer
public HumanPlayer(Color color)
- See Also:
Player
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