Class HumanPlayer

java.lang.Object
javachess.player.HumanPlayer
All Implemented Interfaces:
Player

public class HumanPlayer extends Object implements Player
Class representing a player in the chess game. Each player has a color and can make moves.
  • Constructor Details

  • Method Details

    • getColor

      public PieceColor getColor()
      Description copied from interface: Player
      Returns the color of the player.
      Specified by:
      getColor in interface Player
      Returns:
      the color of the player
    • getMove

      public Move getMove()
      Specified by:
      getMove in interface Player
    • setMove

      public void setMove(Position from, Position to)