Module app

Class Promotion

All Implemented Interfaces:
ChessMove, Move<ChessPiece>

public class Promotion extends PiecePick<ChessPiece> implements ChessMove
Class used to convey information about a promotion of a piece
Please note that it carries information about the CURRENT location of said piece.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getField

      public Field getField()
      Specified by:
      getField in interface ChessMove
      Returns:
      The field on which the piece should be after making the move