Class Knight

java.lang.Object
com.amirhn.Pieces.Piece
com.amirhn.Pieces.Knight

public class Knight extends Piece
The type Knight.
  • Constructor Details

    • Knight

      public Knight(Color color, Location location)
      Instantiates a new Knight.
      Parameters:
      color - the color
      location - the location
  • Method Details

    • getThreatenedLocations

      public List<Location> getThreatenedLocations(Board board)
      Gets threatened locations.
      Specified by:
      getThreatenedLocations in class Piece
      Parameters:
      board - the board
      Returns:
      the threatened locations