Class Rook


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

    • Rook

      public Rook(Color color, Location location)
      Instantiates a new Rook.
      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