Class Bishop

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

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

    • Bishop

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