Class EnPassantDecorator

java.lang.Object
javachess.decorators.PieceDecorator
javachess.decorators.EnPassantDecorator

public class EnPassantDecorator extends PieceDecorator
  • Constructor Details

  • Method Details

    • getValidCells

      public ArrayList<Cell> getValidCells()
      Get the valid cells for the en passant move (pawn).
      Overrides:
      getValidCells in class PieceDecorator
      Returns:
      An ArrayList of valid cells for the en passant move.