Class PawnPromotion


public class PawnPromotion extends Promotion
The type Pawn promotion.
  • Constructor Details

    • PawnPromotion

      public PawnPromotion(Move move, PieceType promotedPieceType)
      Instantiates a new Pawn promotion.
      Parameters:
      move - the move
      promotedPieceType - the promoted piece type
  • Method Details

    • isValidApplyOnBoard

      public boolean isValidApplyOnBoard(Board board)
      Is valid apply on board boolean.
      Overrides:
      isValidApplyOnBoard in class Promotion
      Parameters:
      board - the board
      Returns:
      the boolean
    • isAllowed

      public boolean isAllowed(Chess chess)
      Is allowed boolean.
      Overrides:
      isAllowed in class Move
      Parameters:
      chess - the chess
      Returns:
      the boolean