Module app
Package app.chess

Interface Mover

All Known Implementing Classes:
StandardMover

interface Mover
  • Method Details

    • makeMove

      List<ChessPiece> makeMove(int player, ChessMove move, ChessPiece[][] board, StateManager manager)
    • getPieceKilledByMove

      ChessPiece getPieceKilledByMove(ChessMove move, ChessPiece[][] board)
      Checks if a move kills a piece (or pawn).
      Parameters:
      move - A valid move that is to be evaluated. If it's invalid, an UB will occur.
      board - A board on which the move should take place.
      Returns:
      Null if there is no piece that's going to be taken, reference to said piece otherwise.