- All Known Implementing Classes:
StandardMover
interface Mover
-
Method Summary
Modifier and TypeMethodDescriptiongetPieceKilledByMove
(ChessMove move, ChessPiece[][] board) Checks if a move kills a piece (or pawn).makeMove
(int player, ChessMove move, ChessPiece[][] board, StateManager manager)
-
Method Details
-
makeMove
-
getPieceKilledByMove
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.
-